# 'SELECT' is the most popular SQL SELECT select-list FROM table-name [ WHERE search-condition ] [ ORDER BY sort-order ] # 3 search condition types: compare, like, null # DML : INSERT, DELETE, UPDATE INSERT INTO table-name [ ( column-identifier,… ) ] VALUES ( column-value,… ) DELETE FROM table-name [ WHERE search-condition ] UPDATE table-name SET update-column,… [ WHERE search-condition ] # DDL : Work with the schema CREATE TABLE table-name (column-definition,…) DROP TABLE table-name ALTER TABLE table-name { ADD add-column-set [ DROP drop-column-set ] | DROP drop-column-set } CREATE [ UNIQUE ] INDEX index-name ON table-name ( sort-specification,… ) DROP INDEX index-name FROM table-name
Plus a few column types (not all of them)
['BIT', 'INTEGER', 'COUNTER', 'BIGINT', 'FLOAT', 'TIMESTAMP', 'VARCHAR(n)', 'LONG VARCHAR'] # COUNTER is an auto-incremented unsigned integer