Jump to content

help with this scenario


co.ador

Recommended Posts

A common structure for a tree with unlimited levels in SQL is to have an id column, and "parent" columns in each row.  To find the children of a row X, you select "where parent = X", which will be fast with the parent column indexed.  To find the parent of a row you just fetch the parent column directly from that row.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.