Re: query

From: "JuanCri" <juancri(at)gmail(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: query
Date: 2005-11-20 07:01:57
Message-ID: 1132470117.345048.64260@o13g2000cwo.googlegroups.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

First, INSERT statements are 1 to 1 with table rows... (unless you use
a insert/select).

Second, if you want to probe that.. it is better to create an UNIQUE
index.. isn't it?

Ok, if that's not enough for you... you can create a trigger that
perform a SELECT COUNT(*) with the criteria and if it's > 0, you rise
an exception (sorry, I don't have access to a databae now to check the
code).

Juan C. Olivares
www.juancri.com

In response to

  • query at 2005-11-18 05:25:24 from Aftab Alam

Browse pgsql-sql by date

  From Date Subject
Next Message Andreas Kretschmer 2005-11-20 08:49:39 Re: Create Public Schema
Previous Message JuanCri 2005-11-20 06:43:33 Re: Is it possible to redirect an update/insert/delete to a different table?