LoginSignup
0
1

More than 5 years have passed since last update.

クエリ結果を新しいテーブルに格納する

Last updated at Posted at 2016-09-14

個人的備忘録。

PostgreSQLの場合…

select * into [temp] new_table from hoge ...

または

create [temp] table new_table as select * from hoge ...

(yancya様、ご指摘ありがとうございます。)

MySQLの場合…

create [temporary] table new_table select * from hoge ...
0
1
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1