免费PHP万能建站系统_社区团购SaaS_商城系统_软件开发_虚拟币交易所系统_矿机系统_微信钻石投票系统_成品源码
标题:
mysql 向下级递归查询
[打印本页]
作者:
admin
时间:
2024-2-14 13:58
标题:
mysql 向下级递归查询
WITH RECURSIVE subordinates AS (
SELECT * FROM l_user WHERE id = 4
UNION ALL
SELECT e.* FROM l_user e
JOIN subordinates s ON e.upuserid = s.id
)
SELECT * FROM subordinates;
欢迎光临 免费PHP万能建站系统_社区团购SaaS_商城系统_软件开发_虚拟币交易所系统_矿机系统_微信钻石投票系统_成品源码 (https://ourphp.net/club/)
Powered by Discuz! X3.2