摘要:
1 select OBJECT_NAME(object_id) as tname,* from sys.columns where name='PatientID' 阅读全文
posted @ 2016-10-25 16:23
饭桶≠猪
阅读(141)
评论(0)
推荐(0)
摘要:
1 -- 2 --查找当前数据库服务器中某张表存在于哪个数据库中,sqlserver2008测试通过 3 -- 4 declare @tableName varchar(50) 5 --这里设置要查询的表名字 6 set @tableName='Products' 7 8 --清理临时表 9 if object_id('tempdb..#tmpdbs') is not nu... 阅读全文
posted @ 2016-10-25 16:05
饭桶≠猪
阅读(584)
评论(0)
推荐(0)
浙公网安备 33010602011771号