ibatis db2 sqlMapconfig.xml文件 sql语句的有关问题

ibatis db2 sqlMapconfig.xml文件 sql语句的问题select * from table where num#NUM1# and num#NUM2#*#

ibatis db2 sqlMapconfig.xml文件 sql语句的问题
select * from table where num>#NUM1# and num<=#NUM2#*#NUM3#
有什么问题
错误号:-417 两参数标识符作为运算对象被指定在同一谓词的两边


[解决办法]
是不是乘的时候加个括号啊
[解决办法]
先算*再比较,不用加括号。
我怀疑他之前定义过一个变量叫NUM,结果和字段num给混淆了。