ibatis中不翻译#和$

来源:互联网 发布:淘宝零食旗舰店 编辑:程序博客网 时间:2024/06/15 11:35

可能的原因:使用sqlserver的时候创建查询临时表操作


解决方案:两个##代表一个#

局部临时表

<select id="">select * from ##temp_table</select>

全局临时表

<select id="">select * from ####temp_table</select>


两个$$代表一个$

<select id="">select * from $$temp_table</select>