java里sql语句的like %?%应该怎么写?
应该写作:''%"+?+"%'例如:sb.append(" and bookTypeName like '%"+bookType.getBookTypeName()+"%'");注意:为了连接的时候不出错,and前面记得加一个空格; sb.append(" and bookTypeName like '%+"+bookType.getB