摘要:
业务:一个sys_dept部门表中,有一个字段ancestors是用逗号分隔开的id。 想模糊查询这个字段。 如果用普通的like的话。 select * from sys_dept where ancestors like '%1%' 实现不了我们想要的效果。 mysql 可以用FIND_IN_S 阅读全文
posted @ 2024-09-29 17:08
不想当将军的好士兵
阅读(76)
评论(0)
推荐(0)