摘要: 单条件查询-动态条件查询(choose(when,otherwise)) 从多个条件中选择一个 choose(when,otherwise) 选择,类似于java中的Switch语句(when 相当于 case otherwise 相当于 default) <!-- 单条件查询-动态查询 --> < 阅读全文
posted @ 2022-09-26 00:41 风陵南 阅读(65) 评论(0) 推荐(0)
摘要: 动态条件查询 SQL语句会随着用户的输入或外部条件的变化而变化,我们称为 动态SQL MyBatis 对动态SQL有很强大的支撑: if choose(when,otherwise) trim foreach 将之前的多条件查询改进(之前不能搜索到空字符串以及null) 新增 if 判断(当其中内容 阅读全文
posted @ 2022-09-26 00:12 风陵南 阅读(108) 评论(0) 推荐(0)