google-big-queryHow do I delete a Google Big Query table?
-
To delete a Google BigQuery table, you can use the
DELETEstatement. -
For example, the following code block will delete the table
mydataset.mytable:
DELETE FROM mydataset.mytable
-
If the table is successfully deleted, the output will be
Query OK, 0 rows affected (0.00 sec). -
The
DELETEstatement can also be used with aWHEREclause to delete specific rows from a table. -
For example, the following code block will delete all rows from
mydataset.mytablethat have avaluegreater than 10:
DELETE FROM mydataset.mytable WHERE value > 10
-
If the rows are successfully deleted, the output will be
Query OK, n rows affected (x.xx sec), wherenis the number of rows deleted andx.xxis the execution time of the query. -
For more information about deleting tables and rows in Google BigQuery, please refer to the BigQuery documentation.
More of Google Big Query
- How do I use Google Big Query to zip files?
- ¿Cuáles son las ventajas y desventajas de usar Google BigQuery?
- How can I use Google Big Query to integrate with Zephyr?
- How do I use the YEAR function in Google BigQuery?
- How can I export data from Google Big Query to an XLSX file?
- What are the advantages and disadvantages of using Google BigQuery?
- How do I sign in to Google Big Query?
- How can I use Google BigQuery to retrieve data from a specific year?
- How can I use Google Big Query to analyze data from the GDELT project?
- How can I use Google Big Query to process XML data?
See more codes...