Oracle递归查询SQL语句
Oralce有找存在父子关系的数据,也就是树形结构的数据
select * from table [start with condition1] connect by [prior] id=parentid
但是其他的数据库好像都没有,要么写很复杂的SQL,要么交给程序去处理,比较遗憾。
Oralce有找存在父子关系的数据,也就是树形结构的数据
select * from table [start with condition1] connect by [prior] id=parentid
但是其他的数据库好像都没有,要么写很复杂的SQL,要么交给程序去处理,比较遗憾。