Jump to content

MySQL recursion


PShannon
 Share

Recommended Posts

I have two tables to manage the hierarchical structure of a corporation (does BOM as well).

tblOrganization
   id
   formal_name
   short_name
   etc . . .

tblStructure
   parent_id (tblOrganization.id)
   child_id (tblOrganization.id
   relationship

Done this a ton in SQL Server and Oracle (even MS Access) by using:

 tblOrganization ---> tblStructure <--- tblOrganization_1

I can find no equivalency in MySQL????

What does the MySQL SQL SELECT look like to retrieve that corporate structure?

Thank you . . .

 

Edited by PShannon
Spelling!
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...