找到超过3个参数的存储过程列表 [英] find the list of Stored procedure which of more than 3 parameter
本文介绍了找到超过3个参数的存储过程列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在sql server中找到超过3个参数的存储过程列表。
在我的数据库中,我有超过1000个procudure。我的任务是找到超过3个参数的程序列表。
解决方案
试试这个..
USE DataBaseName
选择 SPECIFIC_SCHEMA,SPECIFIC_NAME,COUNT(PARAMETER_NAME)PARAMETER_COUNT
来自 information_schema.PARAMETERS
group SPECIFIC_SCHEMA,SPECIFIC_NAME
COUNT(PARAMETER_NAME)> = 3
i wants to find the list of Stored procedure which of more than 3 parameter in sql server.
In my database i have more than 1000 procudure. my task is to find the list of procedure which have more than 3 parameter.
解决方案
Try this..
USE DataBaseName select SPECIFIC_SCHEMA,SPECIFIC_NAME,COUNT(PARAMETER_NAME) PARAMETER_COUNT from information_schema.PARAMETERS group by SPECIFIC_SCHEMA,SPECIFIC_NAME having COUNT(PARAMETER_NAME)>=3
这篇关于找到超过3个参数的存储过程列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文