模糊查询

Parameter index out of range (1 > number of parameters, which is 0
Java

Parameter index out of range (1 > number of parameters, which is 0

81 0

本文摘自classinstance.cn。用hibernate操作数据库时,写了一个模糊查询,用参数形式传入SQL,语句如下:select * from article where 1=1 and title like %?% order by create_time desc 调用时传入参数时一直报错:Parameter index out of range (1 > number of parame…