Re: [GENERAL] SQL Newbie Question

2007-02-02 Thread Jim Nasby
On Jan 25, 2007, at 10:30 AM, Inoqulath wrote: CREATE TABLE foo( id serial, a_name text, CONSTRAINT un_name UNIQUE (a_name)); Obviously, inserting a string twice results in an error (as one would expect). But: is there any known possibility to ingnore an errorneous INSERT like SQLite's "conf

Re: [GENERAL] SQL Newbie Question

2007-01-25 Thread Inoqulath
Good hint. I think that should work for me. Thanks (At last, now I know what "unique" means ;-) ) ---(end of broadcast)--- TIP 4: Have you searched our list archives? http://archives.postgresql.org/

Re: [GENERAL] SQL Newbie Question

2007-01-25 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/25/07 09:54, [EMAIL PROTECTED] wrote: > Ron Johnson wrote: >> On 01/25/07 09:30, Inoqulath wrote: [snip] > I think he is not asking "How do I insert duplicate rows into a > unique-constrained column?", but rather that he wants to have the insert

Re: [GENERAL] SQL Newbie Question

2007-01-25 Thread btober
Ron Johnson wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/25/07 09:30, Inoqulath wrote: Hello Folks Have a look at this Table: CREATE TABLE foo( id serial, a_name text, CONSTRAINT un_name UNIQUE (a_name)); Obviously, inserting a string twice results in an error ...is there an

Re: [GENERAL] SQL Newbie Question

2007-01-25 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/25/07 09:30, Inoqulath wrote: > Hello Folks > > Have a look at this Table: > > CREATE TABLE foo( > id serial, > a_name text, > CONSTRAINT un_name UNIQUE (a_name)); > > Obviously, inserting a string twice results in an error (as one would > exp

[GENERAL] SQL Newbie Question

2007-01-25 Thread Inoqulath
Hello Folks Have a look at this Table: CREATE TABLE foo( id serial, a_name text, CONSTRAINT un_name UNIQUE (a_name)); Obviously, inserting a string twice results in an error (as one would expect). But: is there any known possibility to ingnore an errorneous INSERT like SQLite's "conflict algo