Академический Документы
Профессиональный Документы
Культура Документы
FROM t1
CREATE TABLE t (
SELECT * FROM t;
);
DROP TABLE t;
Add a constraint
Drop a constraint
Rename column cl to c2
TRUNCATE TABLE t;
CREATE TABLE t(
SELECT cl, c2 FROM t
);
CREATE TABLE t
( cl INT, cl INT,
UNIQUE(c2,c3) );
Create a unique index on c3, c4 of the table t
Make the values in cl and c2 unique
DELETE FROM t
DROP INDEX idx_name;
CREATE TABLE t
WHERE condition;
( cl INT, c2 INT,
Drop an index
AVG returns the average of a list
AS
CREATE TABLE t(
AS
SELECT cl, c2
FROM t;
Insert one row into a table
INSERT INTO t(column_list)
AS
UPDATEt
SET cl = new_value;
AS
SELECT cl, c2
UPDATEt
FROM t;
SET cl = new_value,
Delete a view
CREATE INDEX idx_name
ON t(cl,c2);
DELETE FROM t;