BigQuery reference
BigQuery DML statements
Data manipulation language changes table rows. In BigQuery every DML statement rewrites the storage blocks it touches, so batching changes and filtering on the partition column keep it fast and cheap.
Statements and clauses in this category
| Statement or clause | What it does |
|---|---|
| DELETE | DELETE removes the rows of a BigQuery table that match a WHERE clause, which is mandatory. |
| INSERT | INSERT adds rows to a BigQuery table from a VALUES list or a SELECT query. |
| MERGE | MERGE updates, inserts and deletes rows of a BigQuery table in one atomic statement, by matching it against a source table or query. |
| TRUNCATE TABLE | TRUNCATE TABLE removes every row from a BigQuery table but keeps its schema, partitioning, clustering, description and labels. |
| UPDATE | UPDATE changes column values in existing BigQuery rows. |
More of the BigQuery reference
Date functionsDatetime functionsTimestamp functionsString functionsAggregate functionsWindow functionsArray functionsJSON functionsConversion functionsConditional expressionsMathematical functionsHash and utility functionsQuery syntaxDDL statementsScripting and data movementINFORMATION_SCHEMAError messagesBigQuery pricingPricing calculator
