selectByMap
时间: 2023-08-23 12:15:35 浏览: 121
select
selectByMap接口是一个查询方法,需要传入一个map集合作为参数。在拼接出的SQL语句中,条件之间只能使用AND进行连接。例如,如果需要查询name为"钱二明",age为25的员工信息,可以使用selectByMap接口,并传入一个包含"name"和"age"键值对的map集合。拼接的SQL语句将会是"SELECT id,name,password,email,age,admin,dept_id FROM employee WHERE name = ? AND age = ?"。\[1\]
#### 引用[.reference_title]
- *1* *3* [MyBatis-Plus总结](https://blog.csdn.net/weixin_45002604/article/details/122510378)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [mybatisplus基本类](https://blog.csdn.net/weixin_55666891/article/details/125971939)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文