首页 > 数据库技术 > 详细

sql 函数 find_in_set, concat

时间:2021-07-28 14:09:36      阅读:15      评论:0      收藏:0      [点我收藏+]

select count(*) from sys_dept where find_in_set("T0001", ancestors) or dept_id="T0001"

select count(*) from sys_dept where ancestors like concat(‘%‘, ‘T0001‘, ‘%‘) or dept_id=‘T0001‘

 

sql 函数 find_in_set, concat

原文:https://www.cnblogs.com/northli/p/15069382.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!