sql server数据库操作给表添加字段 添加字段,设置为自增 alter table 表名 add 列名 int IDENTITY(1,1) NOT NULL 增加字段,设置默认值 alter table 表明 add 列名 type not null default 0