好像在ireport中的 sql查询条件中不能用 like 及in 作为条件
用like的问题
我在在设计器是查询工具中中用select * from customer where cus_name like '%${name}%'
运行出错dori.jasper.engine.JRException: Error preparing statement for executing the report query :
如果用select * from customer where in cus_name ${name}
运行编译正常,但在jsp中传递值时,出现如下问题
当值是一个aaa,正常,当值是一个'aaa','bbb'时,却不能输出数据.
这是为何??
用like的问题
我在在设计器是查询工具中中用select * from customer where cus_name like '%${name}%'
运行出错dori.jasper.engine.JRException: Error preparing statement for executing the report query :
如果用select * from customer where in cus_name ${name}
运行编译正常,但在jsp中传递值时,出现如下问题
当值是一个aaa,正常,当值是一个'aaa','bbb'时,却不能输出数据.
这是为何??
用like的问题
我在在设计器是查询工具中中用select * from customer where cus_name like '%${name}%'
运行出错dori.jasper.engine.JRException: Error preparing statement for executing the report query :
如果用select * from customer where in cus_name ${name}
运行编译正常,但在jsp中传递值时,出现如下问题
当值是一个aaa,正常,当值是一个'aaa','bbb'时,却不能输出数据.
这是为何??
不行的话俺也不清楚
-_-!