这个只能查一个条件,两个条件就不可以
String sql="select * from user where 1=1"; if(是否为空) sql+=" and 条件1"; if(。。。) sql+=" and 条件n"...
58,452
社区成员
49,460
社区内容
加载中
试试用AI创作助手写篇文章吧