sql server 扩展属性 删除,…

    xiaoxiao2021-04-18  70

    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' --查询表 ----------------------------------------
    转载请注明原文地址: https://ju.6miu.com/read-675223.html

    最新回复(0)