DROP DATABASE databaseName
DROP DATABASE IF EXISTS databaseName
CREATE DATABASE databaseName
CREATE DATABASE IF NOT EXISTS databaseName
SHOW DATABASES
USE databaseName
SELECT DATABASE()
SHOW CREATE DATABASE databaseName
DROP TABLE [IF EXISTS] tableName, ...
CREATE TABLE [IF NOT EXISTS] tableName (
columnName columnType columnAttribute, ...
PRIMARY KEY(columnName),
FOREIGN KEY (columnNmae) REFERENCES tableName (columnNmae)
)
SHOW TABLES
DESCRIBE|DESC tableName
ALTER TABLE tableName ...
ALTER TABLE tableName ADD columnDefinition
ALTER TABLE tableName DROP columnName
ALTER TABLE tableName ADD FOREIGN KEY (columnNmae) REFERENCES tableName (columnNmae)
ALTER TABLE tableName DROP FOREIGN KEY constraintName
SHOW CREATE TABLE tableName
INSERT INTO tableName
VALUES (column1Value, column2Value,...)
INSERT INTO tableName
VALUES (column1Value, column2Value,...), ...
INSERT INTO tableName (column1Name, ..., columnNName)
VALUES (column1Value, ..., columnNValue)
DELETE FROM tableName WHERE criteria
UPDATE tableName SET columnName = expr, ... WHERE criteria
SELECT * | column1Name AS alias1, ..., columnNName AS aliasN
FROM tableName
WHERE criteria
GROUP BY columnName
ORDER BY columnName ASC|DESC, ...
HAVING groupConstraints
LIMIT count | offset count
SHOW WARNINGS;