日期:2014-05-16 浏览次数:20387 次
名称
ALTER
 
TABLE
 — 更改表属性
语法
ALTER
 
TABLE
 
table
 
[
 * 
]
????
ADD
 
[
 COLUMN 
]
 
column
 type
ALTER
 
TABLE
 
table
 
[
 * 
]
????
ALTER
 
[
 COLUMN 
]
 
column
 { 
SET
 
DEFAULT
 value 
|
 
DROP
 
DEFAULT
 }
ALTER
 
TABLE
 
table
 
[
 * 
]
????  RENAME 
[
 COLUMN 
]
 
column
 
TO
 newcolumn
ALTER
 
TABLE
 
table
????  RENAME 
TO
 newtable
ALTER
 
TABLE
 
table
????
ADD
 
table
 
constraint