您好,欢迎访问一九零五行业门户网

mysql中实现WITH AS语句

mysql
with n(parentid) as
(select menuid
from tsys_menu
where menuid in
#{item}
union all
select parentid
from tsys_menu
where menuid in
#{item}
union all
select nplus.parentid
from tsys_menu as nplus, n
where n.parentid = nplus.menuid)
select distinct parentid from n where parentid is not null
代码如上,如何在mysql中转换
其它类似信息

推荐信息