【文件属性】:
文件名称:SQL语言教程(经典)
文件大小:553KB
文件格式:PDF
更新时间:2014-04-20 14:07:48
SQL
SQL语言教程,入门经典
使用Transact-SQL语句修改表
语法格式:
ALTER TABLE table_name
{ [ALTER COLUMN column_name
{ new_data_type [(precision [, scale])]
[NULL|NOT NULL]
| {ADD|DROP} ROWGUIDCOL } ]
| ADD
{ [ ] | column_name AS computed_column_expression }[ , ... n ]
| [ WITH CHECK | WITH NOCHECK] ADD { } [ , ... n]
| DROP { [CONSTRAINT] constraint_name | COLUMN column_name} [ , ... n]
|{CHECK | NOCHECK} CONSTRAINT {ALL | constraint_name [ , ... n]}
|{ ENABLE | DISABLE } TRIGGER { ALL | trigger_name [ , ... n]}
}