sql server 扩展属性 删除,…

来源:互联网 发布:多媒体软件系统 编辑:程序博客网 时间:2024/05/28 22:12
exec sp_addextendedproperty
'ms_description','编号',
'user',dbo,
'table',information,
'column',infoID

exec sp_addextendedproperty --扩展属性
'ms_description','信息标题',
'user',dbo,
'table',information,
'column',infoTitle
------------------------------------------------------
Alter table 表名
drop column 字段名 --删除字段


Alter table 表名
add 字段名 类型  --增加字段
foreign key references 表名(字段名) --增加字段之后,添加外链

Alter table Student
alter column stuID varchar --修改字段类型

Alter table 表名
add constraint 名字 default '限制的内容' for 字段名 --对字段增加约束


----------------------------------------------------

--以下是增删查  更新

insert into infoType(tongzhi,gonggao,news) values(vacation,vaction,vaction)

详细参照网址 : w3c


select * from infoType where typeID = '1' --查询表
----------------------------------------



0 0