这是jsp界面dao层怎么写
3条回答
- 伯恩dadi 2016-03-30 07:10关注
select * from user_info t where 1=1
if(name!=null){
and t.name=:name
}
if(sex!=null){
and t.sex=:sex
}
if(age!=null){
and t.age=:age
}本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报
select * from user_info t where 1=1
if(name!=null){
and t.name=:name
}
if(sex!=null){
and t.sex=:sex
}
if(age!=null){
and t.age=:age
}