From: | "Rajesh Kumar Mallah(dot)" <mallah(at)trade-india(dot)com> |
---|---|
To: | Joachim Trinkwitz <jtr(at)uni-bonn(dot)de>, pgsql-sql(at)postgresql(dot)org |
Subject: | Re: INSERT only under certain conditions (SELECT) |
Date: | 2002-07-08 08:12:39 |
Message-ID: | 200207081342.39151.mallah@trade-india.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
create an uniq index on the columns,
# create unique index index_name on table (col1,col2,col3,...)
hope it helps.
regds
mallah
On Monday 08 July 2002 06:48, Joachim Trinkwitz wrote:
> Hi,
>
> I want to insert a row only under condition that there isn't already
> another row with similar values -- something like a INSERT INTO
> ... WHERE NOT EXISTS (SELECT ...)?
>
> Hoping for help,
> joachim
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
--
Rajesh Kumar Mallah,
Project Manager (Development)
Infocom Network Limited, New Delhi
phone: +91(11)6152172 (221) (L) ,9811255597 (M)
Visit http://www.trade-india.com ,
India's Leading B2B eMarketplace.
From | Date | Subject | |
---|---|---|---|
Next Message | Archibald Zimonyi | 2002-07-08 10:35:07 | Double quotes? |
Previous Message | jack | 2002-07-08 08:11:26 |