标签总览
| 定义SQL语句 | insert,delete,update,select |
|---|---|
| 配置java对象属性与查询结果集中列名对应关系 | resultMap |
| 控制动态SQL拼接 | foreach,if,choose |
| 格式化输出 | where,set,trim |
| 配置关联关系 | collection,association |
| 定义常量 | sql |
看到了一个大神,链接:https://blog.csdn.net/weixin_40950778/article/details/78655288
感觉写的非常好,在项目中常常见到where 1=1,为了防止where后面什么条件都没有,殊不知
if test 语句中的判断
https://www.cnblogs.com/sumlen/p/11130554.html
mybatis字符串类型的大坑
https://www.cnblogs.com/grasp/p/11268049.html
插入条件判断
https://bestcxx.blog.csdn.net/article/details/72884938
