RE: [GENERAL] Finding an empty field

From: Michael J Davis <michael(dot)j(dot)davis(at)tvguide(dot)com>
To: "'ghoffman(at)ucsd(dot)edu'" <ghoffman(at)ucsd(dot)edu>, pgsql-general(at)postgreSQL(dot)org
Subject: RE: [GENERAL] Finding an empty field
Date: 1999-07-06 21:11:43
Message-ID: 93C04F1F5173D211A27900105AA8FCFC29908B@lambic.prevuenet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

SELECT * FROM TABLE WHERE FIELD1 = ''; or
SELECT * FROM TABLE WHERE FIELD1 IS NULL;

> -----Original Message-----
> From: ghoffman(at)ucsd(dot)edu [SMTP:ghoffman(at)ucsd(dot)edu]
> Sent: Tuesday, July 06, 1999 2:50 PM
> To: pgsql-general(at)postgreSQL(dot)org
> Subject: [GENERAL] Finding an empty field
>
> I'm having trouble finding empty fields so that I can fill them.
>
> This type of query seems to yield no returned rows:
>
> SELECT * FROM TABLE WHERE FIELD1 IS '';
> or
> UPDATE TABLE SET FIELD1 = 'SOMETHING' WHERE FIELD1 IS '';
>
>
> I've also fooled around with EMPTY and NOT EXISTS, but I can't get it
> right.
>
> What do you recommend to find empty fields?
>
> Thanks,
> Gary
>
> **************************************************************************
> * Gary B. Hoffman, Computing Services Manager e-mail: ghoffman(at)ucsd(dot)edu *
> * Graduate School of International Relations and Pacific Studies (IR/PS) *
> * University of California, San Diego (UCSD) voice: (619) 534-1989 *
> * 9500 Gilman Dr., La Jolla, CA 92093-0519 USA fax: (619) 534-3939 *
> **************************************************************************
>

Browse pgsql-general by date

  From Date Subject
Next Message Peter Eisentraut 1999-07-06 22:28:56 Re: [GENERAL] Auto-timeout on all queries
Previous Message Gary Hoffman 1999-07-06 20:50:08 Finding an empty field