查询语句:select * from tableName where name like '%abc%' 在ireport中的写法如下:select * from tableName where name like '%'+$P{NAME}+'%' 我的ireport版本是1.2.5的。