简体   繁体   English

如何在 shell 脚本文件中编写截断表查询

[英]How to write truncate table query in shell script file

I want to place the shell script file on Unix server.我想将 shell 脚本文件放在 Unix 服务器上。 This file i will be using in iics command task.The file should truncate the table from big query.这个文件我将在 iics 命令任务中使用。该文件应该从大查询中截断表。

Shell scripting syntax to truncate the big query table Shell 截断大查询表的脚本语法

You can use gcloud cli in your Shell script, example:您可以在Shell脚本中使用gcloud cli ,例如:

bq query  --use_legacy_sql=false \
      'TRUNCATE TABLE `my_project.my_dataset.my_table`'

bq query allows to execute a query. bq query允许执行查询。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 架构更新选项只能在表分区上使用 WRITE_APPEND 处置或 WRITE_TRUNCATE 处置指定 - Schema update options should only be specified with WRITE_APPEND disposition, or with WRITE_TRUNCATE disposition on a table partition 如何截断 AWS RDS 中的 Oracle 审计表? - How do I truncate the Oracle audit table in AWS RDS? 带有写入截断的 insert_rows_json - insert_rows_json with write truncate 编写一个 shell 脚本来继续监控 S3 存储桶,如果添加了任何新文件,它会立即获取到其他目的地 - Write a shell script to continue monitor S3 bucket and if any new files added then it instantly fetch to other destination 如何从 Google App Script 执行 Big Query 表的简单查询 - How to execute simple query of Big Query table from Google App Script 将查询结果从表写入 BigQuery 中的分区聚簇表 - Write query results from a table to a partitioned - clustered table in BigQuery 如何:使用 FileOutputStream 编写文件? - How To : Write a File with FileOutputStream? 如何使用服务帐户在 shell 脚本中对 gsutil 进行身份验证 - How to Authenticate to gsutil in a shell script using service account 如何从 WSO2 调用远程机器上的 shell 脚本 - How to invoke a shell script on remote machine from WSO2 如何将 PySpark dataframe 写入 DynamoDB 表? - How to write PySpark dataframe to DynamoDB table?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM