Re: KEYEXISTS function

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: April L <april(at)i-netco(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: KEYEXISTS function
Date: 2002-07-04 17:12:24
Message-ID: 4146.1025802744@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

April L <april(at)i-netco(dot)com> writes:
> In an old DOS database program I programmed in for years, there was a handy
> function called
> KEYEXISTS("value",index)

There's a perfectly standard EXISTS predicate in SQL ... why not
use that?
EXISTS(SELECT 1 FROM table WHERE column = 'value')

regards, tom lane

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Chris Thompson 2002-07-04 17:35:33 limiting a select
Previous Message caroline kenny 2002-07-04 15:26:48 Carraige Return issue