FWQ
Mybatis 动态 SQL 查询中,如何优化包含多个条件且使用 or 连接的查询语句?
mybatis动态sql查询优化 在使用mybatis动态sql时,如何优化以下查询? select * from table a where a.project_id=#{projectid} and a.id != #{id} and a.status=3 and a.id_card = #{code} or a.unit_code = #{code} 登录后复制 解答: 优化后的查询语句如下: select *…