unique & update
От | Ben-Nes Michael |
---|---|
Тема | unique & update |
Дата | |
Msg-id | 002801c1a8c1$cc24c1c0$aa0f5ac2@canaan.co.il обсуждение исходный текст |
Ответы |
Re: unique & update
Re: unique & update |
Список | pgsql-general |
Hi All Im into SQL trees trying to work with CELKO way to do it: http://www.intelligententerprise.com/001020/celko.shtml The problem is that if I try to add a new descendent which is not the most right sibling I get UNIQUE error. This occur ( if im right ) when the update try to update the lft column which is UNIQUE Example of table: CREATE TABLE areas ( lft INT UNIQUE ); I inserted 3 rows with value: 1, 2, 3 now im trying to update: update areas set lft = lft +1; Then I get the UNIQUE problem. Is there a way to do UNIQUE check after the whole table got updated ? If not, any ideas to walk around the problem ? -------------------------- Canaan Surfing Ltd. Internet Service Providers Ben-Nes Michael - Manager Tel: 972-4-6991122 http://sites.canaan.co.il --------------------------
В списке pgsql-general по дате отправления: