0
我有一个存储过程,其中多次创建一些全局表(从##
开始)。我想列出表名称。例如 -从sql脚本查找全局临时表名
create table ##customer
(
Customerid bigint
)
if(OBJECT_ID('tempdb..##Department')) is null
begin
create table ##Department
(
Departmentid bigint
)
end
SELECT * FROM ##customer
我想列出临时表名称,它们被创建并用作选择查询。请帮忙。使用SQL查询的第一优先级。如果你不知道sql,那么使用C#。我将把存储过程内容传递给C#方法。