google-big-queryHow do I delete a Google Big Query table?
-
To delete a Google BigQuery table, you can use the
DELETE
statement. -
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
DELETE
statement can also be used with aWHERE
clause to delete specific rows from a table. -
For example, the following code block will delete all rows from
mydataset.mytable
that have avalue
greater 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)
, wheren
is the number of rows deleted andx.xx
is 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 start using Google Big Query?
- How can I use Google Big Query to integrate with Zephyr?
- How can I create a Google BigQuery table?
- ¿Cuáles son las ventajas y desventajas de usar Google BigQuery?
- How do I query Google BigQuery using XML?
- How can I use the CASE WHEN statement in Google Big Query?
- How do I sign in to Google Big Query?
- How do I use Google Big Query with Excel?
- How do I use a Google BigQuery URL?
- How to use the Google BigQuery emulator?
See more codes...