本文共 591 字,大约阅读时间需要 1 分钟。
select id ,name,age,sex,grade,class as team,teacher from student where is_deleted='n' order by id limit #{offset},8 select count(*) from student where is_deleted='n' select id ,name,age,sex,grade,class as team,teacher from student and name like '%${name}%' and age = #{age} and sex = #{sex} and grade = #{grade} and class = #{team} and teacher = #{teacher} and is_deleted='n'
使用了<where>标签就不需要加where关键字,<where>标签会自动去掉第一个条件的and,or
本文出自 “” 博客,请务必保留此出处
转载地址:http://oldxx.baihongyu.com/