Sql语句中关于如何在LIKE'%?%'中给?赋值
ct = new ConnDB().getConn(); ps = ct.prepareStatement("select * from news where keyWords like'%?%'"); ps.setString(1, search);这样的方式给like里的问号赋值,会报错Parameter index out of range (1 > number of pa