MSSQL添加一个字段的SQL语句
alter table 表名 add 字段名 数据类型
例:alter table db_user add ip nvarchar(255) Null
alter table db_user add no int Null(0)
修改一个字段值:
update db_ml set no='0' where no is Null
alter table 表名 add 字段名 数据类型
例:alter table db_user add ip nvarchar(255) Null
alter table db_user add no int Null(0)
修改一个字段值:
update db_ml set no='0' where no is Null