Treestructure in SQL
Bruno Desthuilliers
bdesth.nospam at removeme.free.fr
Tue Nov 25 19:05:05 EST 2003
Thomas Weholt wrote:
> Hi,
>
> I need to define tree-like structure for content categories in a simple CMS
> project. I got a table in a SQLite database which looks like this :
>
> CREATE TABLE category (
> CAT_ID INTEGER PRIMARY KEY,
> CAT_PARENT_ID integer,
> CAT_NAME varchar(100) NOT NULL,
> CAT_DESCRIPTION varchar(250),
> );
>
(snip)
>
> Any clues or hints??
You may want to read this :
http://c2.com/cgi/wiki?TreeInSql
HTH
Bruno
More information about the Python-list
mailing list