
SQL Server
sweet_candys
这个作者很懒,什么都没留下…
展开
-
sqlserver sys系列参数纪要
//获取指定表信息select * from sys.all_objects where type='u' and name='UserDeliveryBook'//获取一个表中的所有字段信息select * from sys.syscolumns where id=(select object_id from sys.all_objects where type='u'原创 2015-08-24 10:39:02 · 485 阅读 · 0 评论 -
sqlserver sysobject 查找新增字段和修改字段
//查找新增字段select name as '新增字段',(select name from 【测试库】.sys.sysobjects where id= tech.id ) as '表名',* from 【测试库】.sys.syscolumns as techwhere name not in ( select name from 【正式库】.sys.sysco原创 2015-08-26 11:02:18 · 630 阅读 · 0 评论