67,511
社区成员
发帖
与我相关
我的任务
分享
SQL> select a.id,level from Type a start with id=5 connect by prior id=small_plates;
ID LEVEL
---------- ----------
5 1
6 2
7 2
22 3
select * from Type where id=5 or id=6 or id=7 or id=22