第一章 SQL命令 ALTER TABLE(一)
修改表。
大纲
ALTER TABLE table alter-action
where alter-action is one of the following:
ADD [(] add-action {,add-action} [)] |
DROP [COLUMN ] drop-column-action {,drop-column-action} |
DROP drop-action |
DELETE drop-action |
ALTER [COLUMN] field alter-column-action |
MODIFY modification-spec {,modification-spec}
RENAME table
add-action ::=
[CONSTRAINT identifier]
[(] FOREIGN KEY (field-commalist)
REFERENCES table (field-commalist)
[ON DELETE ref-action] [ON UPDATE ref-action]
[NOCHECK] [)]

.png)