Google Bigquery BQ command line execute query from a file

后端 未结 6 606
天涯浪人
天涯浪人 2020-12-19 04:49

I use the bq command line tool to run queries, e.g:

bq query "select * from table"

What if I store the query in a file

6条回答
  •  鱼传尺愫
    2020-12-19 05:15

    bq query --replace --use_legacy_sql=false --destination_table=syw-analytics:store_ranking.SHC_ENGAGEMENT_RANKING_TEST
    "SELECT RED,
            DEC,
            REDEM
    from `\syw.abc.xyz\`"
    

提交回复
热议问题