sql Server 的语句WITH taball
AS ( SELECT ID ,
PID ,
DirName,
Levels ,
DirDesc
FROM dbo.S_AttachDir
WHERE ID = '{ID}'
UNION ALL
SELECT a.ID ,
a.PID ,
a.DirName ,
a.Levels ,
a.DirDesc
FROM taball
INNER JOIN dbo.S_AttachDir a ON taball.PID = a.ID
)
SELECT *
FROM taball;
求大神解答,怎么用mysql语句实现
- 1 回答
- 0 关注
- 811 浏览
添加回答
举报
0/150
提交
取消