Finding an empty field - Mailing list pgsql-general

From ghoffman@ucsd.edu (Gary Hoffman)
Subject Finding an empty field
Date
Msg-id fc.00249f0e0037a3eb00249f0e0037a3eb.37a3f8@irpsbbs.ucsd.edu
Whole thread Raw
List pgsql-general
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@ucsd.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 *
**************************************************************************


pgsql-general by date:

Previous
From: "Erik Colson"
Date:
Subject: Empty date field !
Next
From: Michael J Davis
Date:
Subject: RE: [GENERAL] Finding an empty field