可能的原因:使用sqlserver的时候创建查询临时表操作
解决方案:两个##代表一个#
局部临时表
<select id="">
select * from ##temp_table
</select>
全局临时表
<select id="">
select * from ####temp_table
</select>
两个$$代表一个$
<select id="">
select * from $$temp_table
</select>

本文介绍了在 SQL Server 中如何正确地使用局部和全局临时表。局部临时表使用双井号(##)来创建,而全局临时表则使用四个井号(####)。此外,文章还提到了使用双美元符号($$)作为特殊标识的情况。

2384

被折叠的 条评论
为什么被折叠?



