在已存在的字段上添加和删除默认值
2014-09-04 15:13
169 查看
--删除默认值 select * from sysobjects where object_name(parent_obj)='表名' 执行结果也可以得到表的默认值信息 -------------------------------------------------------------------- 确定默认值名称后,就可用 alter table [表名] drop constraint [默认值名] --添加默认值 alter table snsn_user add constraint df_adc default (getdate()) for idate /***************************************************************************************/ alter table snsn_user drop constraint df_adc
相关文章推荐
- 在已存在的字段上添加和删除默认值
- 在已存在的字段上添加和删除默认值,sql:
- Sql Server 添加删除字段判断表或字段是否存在得到字段描述
- 用Sql添加删除字段,判断字段是否存在的方法
- *用Sql添加删除字段,判断字段是否存在的方法
- Sql Server 添加删除字段判断表或字段是否存在得到字段描述
- sql 添加 删除 判断字段是否存在
- Sql添加删除字段,判断字段是否存在
- SQL 语句创建表 添加、删除、修改字段 表是否存在 是否存在数据
- 用Sql添加删除字段,判断字段是否存在的方法
- Sql Server 添加删除字段判断表或字段是否存在得到字段描述
- 用 Sql添加删除字段,判断字段是否存在的方法
- Sql Server 添加删除字段判断表或字段是否存在得到字段描述
- 用Sql添加删除字段,判断字段是否存在的方法
- 为已存在的字段(Null)添加约束,设置默认值为0
- 给Postgresql已经存在的表中的列删除或者添加默认值
- sql 添加 删除 判断字段是否存在
- 用Sql添加删除字段,判断字段是否存在的方法
- Sql Server 添加删除字段判断表或字段是否存在得到字段描述
- 用Sql添加删除字段,判断字段是否存在的方法