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 find the Google BigQuery project ID?
- How do I set up a Google Big Query zone?
- ¿Cuáles son las ventajas y desventajas de usar Google BigQuery?
- How can I use Google BigQuery to access Wikipedia data?
- How do I use Google Big Query with Excel?
- How can I use Google BigQuery to wait for a query to complete?
- How do I use wildcards in Google BigQuery?
- How can I use Google Big Query to split data?
- How can I use Google Big Query to count the number of zeros in a given dataset?
- How can I use Google BigQuery on a Windows system?
See more codes...