因大写,小写都查询出了结果,导致业务逻辑出错
怎么SQL直接让查询时区分出大小写
加关键字: binary
<select id="getByName" resultType="cn.entity.XXX"> select * from td_xx t where t.xx_id = #{xxId} and binary t.name = #{xxName} limit 1 select>
京公网安备 11010502049817号