随笔分类 -  SqlServer

SqlServer数据库
摘要:--查询存储过程中含某字段的所有存储过程: select distinct name, text from dbo. syscomments a,dbo. sysobjects b where a.id=b.id and b.xtype= 'p' and a. text like '%ZyNum%' 阅读全文
posted @ 2021-08-23 16:59 HRain 阅读(89) 评论(0) 推荐(0)
摘要:select name from sysobjects where xtype='u' --读取库中的所有表名 select name from syscolumns where id=(select max(id) from sysobjects where xtype='u' and name= 阅读全文
posted @ 2021-01-28 09:48 HRain 阅读(894) 评论(0) 推荐(0)