sql操作数据库字段
作者:互联网
一、给已有的字段添加默认值(0)
IF NOT EXISTS ( select * from sysobjects where parent_obj in( select id from sysobjects where name='m_vip(表名)') and name = 'DF_m_vip_frequency(约束名)') ALTER TABLE m_vip add constraint DF_m_vip_frequency(约束名) DEFAULT 0 for frequency(字段)
标签:name,DF,数据库,vip,frequency,sql,操作,select,sysobjects 来源: https://www.cnblogs.com/ki16/p/14866380.html