0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Bigqueryでかっこよくデータを作る

Posted at

手動でデータを作ることが多いが、毎回 Bigquery SQLでいい感じに作る方法を忘れちゃうので備忘録的メモ

with employees as (
  select
    *
  from unnest(array<struct<employee_id string, name string, salary int>>[
    ('001', 'Kato', 550),
    ('002', 'Maeda', 2000),
    ('003', 'Ito', 750),
  ]) x
)
select
  *
from
 employyes

これなら型指定できるから重宝している!

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?