BigQuery - GradedJestRisk/db-training GitHub Wiki
SQL-compliant
OLAP (OnLine Analytical Processing), column-oriented storage
Partition
Cluster
Temporary table
View
Procedural
Concurrency control SO
Level:
- project
- dataset
- table
Integrity constraints are not enforced:
- primary key
- foreign key
There is no sequence, or auto-incrementing fields. You should rely to external code or use GENERATE_UUID
CREATE TABLE employee(
id STRING
);
INSERT INTO employee (id)
SELECT GENERATE_UUID()Identifier (table name) are escaped with backticks.
SELECT *
FROM `dataset.products`
Not available in console queries, only in sessions and scripts.
BEGIN TRANSACTION
DELETE FROM employee;
# ROLLBACK TRANSACTION
COMMIT TRANSACTIONShortcut:
- execute : Ctrl + Enter
- complete: Ctrl + Space
- format: Ctrl + Shift + F
- comment : Ctrl + /