A Gentle Introduction to

SQL

CREATE, DROP and ALTER

How to create tables, indexes, views and other things. How to get rid of them. How to change them.

CREATE a new table| SQLite | DB2 | Access | Postgres | Oracle | SQL Server | MySQL | Mimer | Sybase |
DROP an unwanted table| SQLite | DB2 | Access | Postgres | Oracle | SQL Server | MySQL | Mimer | Sybase |
Composite primary key| SQLite | DB2 | Access | Postgres | Oracle | SQL Server | MySQL | Mimer | Sybase |
Composite foreign key| SQLite | DB2 | Access | Postgres | Oracle | SQL Server | MySQL | Mimer | Sybase |
CREATE a VIEW.| SQLite | DB2 | Access | Postgres | Oracle | SQL Server | MySQL | Mimer | Sybase |
Create a table with an autonumber field (also known as sequence, identity)| SQLite | DB2 | Access | Postgres | Oracle | SQL Server | MySQL | Mimer | Sybase |
ALTER TABLE ... ADD COLUMN| SQLite | DB2 | Access | Postgres | Oracle | SQL Server | MySQL | Mimer | Sybase |
ALTER TABLE ... DROP COLUMN| SQLite | DB2 | Access | Postgres | Oracle | SQL Server | MySQL | Mimer | Sybase |
ALTER TABLE ... ADD constraint| SQLite | DB2 | Access | Postgres | Oracle | SQL Server | MySQL | Mimer | Sybase |
CREATE TABLE problems: Invalid column name.| SQLite | DB2 | Access | Postgres | Oracle | SQL Server | MySQL | Mimer | Sybase |
CREATE TABLE problems: Insufficient privileges.| SQLite | DB2 | Access | Postgres | Oracle | SQL Server | MySQL | Mimer | Sybase |
CREATE TABLE problems: Table already exists.| SQLite | DB2 | Access | Postgres | Oracle | SQL Server | MySQL | Mimer | Sybase |
DROP TABLE problems: Foreign key references.| SQLite | DB2 | Access | Postgres | Oracle | SQL Server | MySQL | Mimer | Sybase |
CREATE TABLE problems: Foreign key references.| SQLite | DB2 | Access | Postgres | Oracle | SQL Server | MySQL | Mimer | Sybase |
rename column| SQLite | DB2 | Access | Postgres | Oracle | SQL Server | MySQL | Mimer | Sybase |