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 use Google Big Query to zip files?
- ¿Cuáles son las ventajas y desventajas de usar Google BigQuery?
- How do I use the YEAR function in Google BigQuery?
- How can I determine the length of a string in Google BigQuery?
- How do I use Google Big Query with Zoom?
- How can I export data from Google Big Query to an XLSX file?
- How can I use the CASE WHEN statement in Google Big Query?
- How can I compare Google BigQuery and Snowflake for software development?
- How do I use Google BigQuery to understand the meaning of data?
- How do I query Google Big Query?
See more codes...