标签:rom summary order ecif object_id 数据 sql 语句 name res
本文主要介绍一下,SQL里面的两个很实用的两个操作:
SELECT *
FROM INFORMATION_SCHEMA.PARAMETERS
WHERE SPECIFIC_NAME='proc_name'
ORDER BY ORDINAL_POSITION
对应的存储过程是: sp_describe_first_result_set
例子:
sp_describe_first_result_set @tsql =
N'SELECT object_id, name, type_desc
FROM sys.indexes
WHERE object_id = @id1'
, @params = N'@id1 int'
SQL Server get SP parameters and get output fields type information
标签:rom summary order ecif object_id 数据 sql 语句 name res
原文地址:https://www.cnblogs.com/swlin/p/10264252.html