I am trying to truncate an existing table in GBQ but the below command fails when I run it. Is there any specific command or syntax to do that. I looked into GBQ documentation b
CREATE OR REPLACE TABLE . AS SELECT * FROM . LIMIT 0; For partitionned tables, assuming you have a day partition on field "created_on", then execute the following : CREATE OR REPLACE TABLE . PARTITION BY created_on AS SELECT * FROM . WHERE created_on = CURRENT_DATE() LIMIT 0; 0 讨论(0) 查看其它4个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
For partitionned tables, assuming you have a day partition on field "created_on", then execute the following :
CREATE OR REPLACE TABLE . PARTITION BY created_on AS SELECT * FROM . WHERE created_on = CURRENT_DATE() LIMIT 0; 0 讨论(0) 查看其它4个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题