CassidyHunt
IS-IT--Management
I am fairly new to mysql and more familiar with Oracle. I do not know if this is supported. I didn't find anything on google for this in mysql. I am trying to basically create a tree structure on the database. In Oracle the statement I would use would be:
Thanks
Code:
select unique_id, parent_id, (lpad(' ',(level - 1)*3) || nodetext) as nodetext from table
start with parent_id is null
connect by prior unique_id = parent_id
Thanks