LoginSignup
1
1

More than 1 year has passed since last update.

BigQueryで一時テーブルを使う

Posted at

BigQueryで一時テーブルが使えることを最近知りました。。

CREATE TEMP TABLE テーブル名

・一時テーブルの名前にはプロジェクトまたはデータセットを使用しない
・一時テーブルの保管には料金はかからない
・一時テーブルは最大24時間残る。クエリ履歴から参照可能
参考。詳しく載ってます

CREATE TEMP TABLE tmp_table
AS
 SELECT id, date
 FROM myproject.mydataset.mytable
   :
;

SELECT
 id, date
FROM tmp_table
   :
;
1
1
0

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
1
1