我需要构建一个SSRS报告,显示SQL Azure表中的查询结果 . 但是,我的where条件之一将检查从存储过程(exec team param1,param2)结果集中提取的数据 . 添加到复杂的是存储过程创建临时表( tempteam
)来存储结果 . 如何为我需要的数据编写查询,以指定where子句中的 tempteam
内容?
示例代码
exec team 9596, 2
select * from tempteam
Tempteam样本结果
consid
9596
23456
24354
20965
....
....
....
2 回答
你不能只在查询的 WHERE 子句中使用"TEMP"表吗?
我没有't think the 2543094 table is actually a normal SQL Temporary table since it doesn'在它前面有一个#标签(
#tempteam
) - 看起来它是一个存储在数据库中的实际表 .这是您可以使用的一个选项:
或参数化:
完全重复: