Bug #29358 Hierarchical queries

Submitted: 26 Jun 2007 13:18 Modified: 26 Jun 2007 15:24
Reporter: Federico Razzoli (OCA) Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Server Severity:S4 (Feature request)
Version: OS:Any
Assigned to: CPU Architecture:Any

[26 Jun 2007 13:18] Federico Razzoli
Description:
Oracle-like hierarchical queries would be useful.

How to repeat:
/

Suggested fix:
The following syntax would be great:

SELECT LPAD(' ',2*(LEVEL-1)) AS indent, field1, field2
FROM wonderful_table
START WITH field1='First record!'
CONNECT BY PRIOR record_id=parent_id;

(LEVEL is an Oracle's special coulumn)
[26 Jun 2007 15:24] Jim Winstead
This is a duplicate of Bug #2341.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.050 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.