Google Bigquery BQ command line execute query from a file

后端 未结 6 608
天涯浪人
天涯浪人 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条回答
  •  猫巷女王i
    2020-12-19 05:29

    There is another way.

    Try this:

    bq query --flagfile=[your file with absolute path]
    

    Ex:

    bq query --flagfile=/home/user/abc.sql
    

提交回复
热议问题