If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Usage of HIERARCHICAL Queries in MySQL

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-03-07, 02:06
sushma007 sushma007 is offline
Registered User
 
Join Date: Aug 2007
Posts: 64
Thumbs down Usage of HIERARCHICAL Queries in MySQL

Hi All ,

Will MySQL supports START WITH ..CONNECT BY Clause. I have a SELECT Statement(With Start With .. Connect By Clause) that will returns the Hierarchical data of a particular Table .

Is there any way to Query MySQL to get the same out put .

Oracle SQL:

Quote:
Select parent1,child from hierrarchy start with parent1=1 connect by parent1=child
I am in need of getting the MySQL Equivalent of the above Oracle query .

Thanks ,
Sushma
Reply With Quote
  #2 (permalink)  
Old 12-03-07, 03:28
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,534
Quote:
Originally Posted by sushma007
Is there any way to Query MySQL to get the same out put .
no, there isn't
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 12-04-07, 16:17
johndz johndz is offline
Registered User
 
Join Date: Dec 2004
Location: Broomfield, Colorado
Posts: 16
mysql hierarchy

You may be able to write a set of stored procedures to mimic "connect by" . See page 60 of this document:

http://dev.mysql.com/tech-resources/...procedures.pdf
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On