摘要:
-- 1 instr(字段名,子字符串) select * from 表名 where instr(role_ids,'2'); -- 2 like%子字符串% select * from 表名 where role_ids like '%2%'; -- 3 locate(子字符串,字段名) sel 阅读全文
摘要:
mybatisplus exception:One record is expected, but the query result is multiple records 原因:使用getOne(queryWrapper),查出了多条数据 解决方案:如果想取一条并不想报错时使用getOne(que 阅读全文