25th
01.09
sql语句:alter table语句修改数据表
对表的修改分三种:添加字段,修改字段,删除字段
Table:表名, File:字段
添加字段:Alert table Table Add File int null,
修改字段:Alert table Table Alert column File varchar(20) null,
删除字段: Alter table Table Drop column File
对于设置identity 属性的字段。修改方法很难实现。还是直接删除后再次建立
indentity : 表示默认即 indentity(1,1)
indentity(基数,种子)
- Alter table Employees Add cccc int null
- Alter table Employees drop column cccc
- Alter table Employees Drop column EmployeeID
- Alter table Employees Add EmployeeID int identity (1,1) not null
- Alter table Employees Alter column FirstName varchar(20) null
- Alter table Employees Alter column LastName varchar(20) null
Name: Cngothic 













