Task
|
Example
|
Reference
|
---|---|---|
Create a table
|
CREATE TABLE TEST (I INTEGER, TEXT VARCHAR);
|
|
Delete a table
|
DROP TABLE TEST;
|
|
Add columns to a table
|
ALTER TABLE TEST ADD COLUMN C CHAR(1);
|
|
Delete a column from a table
|
ALTER TABLE TEST DROP COLUMN C;
|
|
List all user-created tables
|
LIST TABLES;
|
|
List all tables (including system tables)
|
SELECT * FROM TABLES;
|
|
View basic table information
|
DESCRIBE TABLE TEST;
|