| От | Joe Stump |
|---|---|
| Тема | Recursive FOREIGN KEY? |
| Дата | |
| Msg-id | 002a01c419de$49e78400$9601a8c0@jstump обсуждение исходный текст |
| Ответы |
Re: Recursive FOREIGN KEY?
|
| Список | pgsql-general |
I have a table that will have a parent/child relationship (specifically a recursive collection of categories) and was wondering if I can reference a key in the same table ... CREATE TABLE categories ( categoryID integer PRIMARY KEY, parentID integer REFERENCES categories (categoryID) ON DELETE CASCADE, ... ); Is this supported? Any comments from people out there who have created such setups? I'm new to PGSQL and looking hard at converting from MySQL so all of these fun features are new to me :) Thanks! --Joe -- Joe Stump, President JCS Solutions http://www.jcssolutions.com (734) 786 0176
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера