0
点赞
收藏
分享

微信扫一扫

sublime中添加GBK编码模式

快乐码农Alan007 2024-01-14 阅读 22
mybatisxml

问题描述:

原因:

解决方法:

1、当查询语句使用#{},例如传入"update_date desc"排序条件,生成语句如下

select id, title, name, status, create_by,create_date,update_by,update_date from table 
WHERE status = 1 order by "update_date desc"

2、使用${}生成语句是:

select id, title, name, status, create_by,create_date,update_by,update_date from table 
WHERE status = 1 order by update_date desc

3、推荐文章
Mybatis中${}和#{}的区别:https://blog.csdn.net/BBQ__ZXB/article/details/127089187

举报

相关推荐

0 条评论