with as 递归

2015-04-27 0 420
with as 递归
with accountrp AS(
  SELECT TOP 1 uid,uaccountrpid,ccode from t_accountrp where ccode='S1409170006' 
	UNION ALL
	SELECT  t_accountrp.uid,t_accountrp.uaccountrpid,t_accountrp.ccode 
		from accountrp inner join t_accountrp on accountrp.uaccountrpid=t_accountrp.uid
 )select  * from accountrp ORDER BY ccode;

遇见资源网 sql with as 递归 http://www.ox520.com/17624.html

上一篇: ORACLE表分区
下一篇: 实现杨辉三角
常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务