like 模糊查询 CONCAT() 拼接字符串 String sql="select * from news_detail where 1=1"; sql+=" and title like CONCAT('%',?,'%')"