Re: hierarchical table with unique constraint

2006-10-25 Thread mark boylan
- Original Message - From: Jim Newsham To: 'Derby Discussion' Sent: Wednesday, October 25, 2006 2:07 AM Subject: RE: hierarchical table with unique constraint As a workaround, I changed "generated" from "always" to "by default", and

Re: hierarchical table with unique constraint

2006-10-25 Thread Piet Blok
hear them.   Thanks, Jim   From: Jim Newsham [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 24, 2006 12:18 PMTo: 'Derby Discussion'Subject: hierarchical table with unique constraint     Hi,   I’d like to create a hierarchical table which r

RE: hierarchical table with unique constraint

2006-10-24 Thread Jim Newsham
, Jim   From: Jim Newsham [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 24, 2006 12:18 PM To: 'Derby Discussion' Subject: hierarchical table with unique constraint     Hi,   I’d like to create a hierarchical table which references itself and enforces uniqueness.  F

hierarchical table with unique constraint

2006-10-24 Thread Jim Newsham
  Hi,   I’d like to create a hierarchical table which references itself and enforces uniqueness.  For example:   create table node (   id  int not null generated always as identity primary key,   name    varchar(32) not null,   fk_parent_id    int,