Quantcast
Channel: ITPUB论坛-专业的IT技术社区
Viewing all articles
Browse latest Browse all 18583

求一sql统计所有下级的总和

$
0
0
数据: with t as ( select 100 userid, 0 parentid, 90 amount from dual union all select 110, 100, 80 from dual union all select 120, 110, 70 from dual union all select 130, 120, 60 from dual union all select 200, 0, 50 from ...

Viewing all articles
Browse latest Browse all 18583

Trending Articles