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 can I use Google Big Query to count the number of zeros in a given dataset?
- ¿Cuáles son las ventajas y desventajas de usar Google BigQuery?
- How can I use Google BigQuery to create a pivot table?
- How can I learn to use Google BigQuery?
- How can I learn to use Google Big Query?
- How do I use the YEAR function in Google BigQuery?
- How can I use Google BigQuery to wait for a query to complete?
- How can I use Google BigQuery on a Windows system?
- How can I use Google BigQuery to answer specific questions?
- How can I use Google Big Query to process XML data?
See more codes...