Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Novice > Re: Ignore uniq...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 3049 of 3160
Post > Topic >>

Re: Ignore unique violations?

by andreas.kretschmer@[EMAIL PROTECTED] ("A. Kretschmer") Mar 27, 2008 at 10:52 AM

am  Thu, dem 27.03.2008, um  9:45:33 +0000 mailte A B folgendes:
> Is there any easy way of ignoring unique violations?
> I have a table (a integer, b integer, unique (a,b) ) and want to
> insert pairs of values for a and b, but I do not want to first select
> to see if there is a pair  before inserting.
> So can I make postgres ignore any error or exception?

I hope this link can help you:
http://andreas.scherbaum.la/blog/archives/11-Avoid-Unique-Key-violation.html


Regards, Andreas
-- 
Andreas Kretschmer
Kontakt:  Heynitz: 035242/47150,   D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID:   0x3FFF606C, privat 0x7F4584DA   http://wwwkeys.de.pgp.net

-- 
Sent via pgsql-novice mailing list (pgsql-novice@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-novice
 




 1 Posts in Topic:
Re: Ignore unique violations?
andreas.kretschmer@[EMAIL  2008-03-27 10:52:20 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Sun Jul 6 18:54:29 CDT 2008.