首页 > 技术文章 > MSSQL给字段添加默认值

railgunman 2018-05-06 10:19 原文

create table t(id int,v int )

go

alter table t ADD DEFAULT 0 FOR v

go

推荐阅读