loops ability
I have two tables:
CREATE TABLE `auth_groups` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(100) default NULL,
`description` text,
PRIMARY KEY (`id`),
KEY `id` (`id`)
) TYPE=InnoDB;
CREATE TABLE `auth_groupgroup` (
`parent` int(11) default NULL,
`child` int(11) default NULL,
KEY `parent` (`parent`),
KEY `child` (`child`),
FOREIGN KEY (`child`) REFERENCES `auth_groups` (`id`),
FOREIGN KEY (`parent`) REFERENCES `auth_groups` (`id`)
) TYPE=InnoDB;
Can I select all groups, witch contain all subgroups? even when exists groups at third level
Maybe need use skilful JOIN?
Edited 2 time(s). Last edit at 10/24/2005 01:18AM by Michel Mironov.
Subject
Views
Written By
Posted
loops ability
5053
October 24, 2005 12:52AM
Sorry, you can't reply to this topic. It has been closed.
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.