![](/img/trans.png)
[英]Schema update options should only be specified with WRITE_APPEND disposition, or with WRITE_TRUNCATE disposition on a table partition
[英]How to write truncate table query in shell script file
我想將 shell 腳本文件放在 Unix 服務器上。 這個文件我將在 iics 命令任務中使用。該文件應該從大查詢中截斷表。
Shell 截斷大查詢表的腳本語法
您可以在Shell
腳本中使用gcloud
cli ,例如:
bq query --use_legacy_sql=false \
'TRUNCATE TABLE `my_project.my_dataset.my_table`'
bq
query
允許執行查詢。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.