在sql中添加判断条件 where 1=1 主要是为了衔接后面可能出现的动态sql,避免出现 where and id=1 这种情况。详情可以点开 https://blog.csdn.net/xiaxiaorui2003/article/details/53301540 点击打开链接 查看。
Mybatis中 where 1=1 和 where 标签
猜你喜欢
转载自blog.csdn.net/qq_29410905/article/details/80022557
今日推荐
周排行