![]() |
Prev | Next |
node
table has the following columns:
integer
and is the primary key for this table.
Its initial value is zero, and it increments by one for each row.
text
and has a different value for every row;
i.e., the names are unique and can act as substitutes for the primary key.
The names are intended to be easier for a human to remember than the ids.
integer
and is the
node_id
of the parent for this node.
If this node has no parents,
parent
is null
.
Note that this is a value for the primary key in this table, but
the name of this column does not follow the
foreign key
naming convention.
p
is the sent of
node_id
values
such that the corresponding
parent
is equal to
p
.
p
is the
set children of
p
, grand children of
p
,
...
.
node
table.