2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

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
   :
;
2
2
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
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?