原SQL
select stuid,stuname from student_tb where createTime >'2023-3-10' and createTime <= '2023-3-20'
修改后SQL:
select stuid,stuname from student_tb where createTime > '2023-3-10' and createTime <= '2023-3-20'
mybatis 大于小于转义教程
于 2024-03-15 15:38:57 首次发布
本文比较了两种SQL查询语句,原始SQL使用>和<操作符,而修改后的SQL使用&gt;和&lt;,展示了在处理时间范围查询时可能的编码差异。
3144

被折叠的 条评论
为什么被折叠?



