pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedSelecting empty columns
2+ messages / 2 participants
[nested] [flat]
* Selecting empty columns
@ 2000-11-28 11:39 Hans-Jürgen Schönig <hs@cybertec.at>
2000-11-28 16:05 ` Re: Selecting empty columns Ross J. Reedstrom <reedstrm@rice.edu>
0 siblings, 1 reply; 2+ messages in thread
From: Hans-Jürgen Schönig @ 2000-11-28 11:39 UTC (permalink / raw)
To: pgsql-sql
How can I retrieve empty columns from a table?
The affected column is int4, some row do have values, others are empty -
how can those empty ones be retrieved and updated to 0
Hans
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Selecting empty columns
2000-11-28 11:39 Selecting empty columns Hans-Jürgen Schönig <hs@cybertec.at>
@ 2000-11-28 16:05 ` Ross J. Reedstrom <reedstrm@rice.edu>
0 siblings, 0 replies; 2+ messages in thread
From: Ross J. Reedstrom @ 2000-11-28 16:05 UTC (permalink / raw)
To: pgsql-sql
On Tue, Nov 28, 2000 at 12:39:50PM +0100, Hans-Jürgen Schönig wrote:
> How can I retrieve empty columns from a table?
> The affected column is int4, some row do have values, others are empty -
> how can those empty ones be retrieved and updated to 0
UPDATE foo_table SET bar_column = 0 WHERE bar_column IS NULL;
Ross
--
Open source code is like a natural resource, it's the result of providing
food and sunshine to programmers, and then staying out of their way.
[...] [It] is not going away because it has utility for both the developers
and users independent of economic motivations. Jim Flynn, Sunnyvale, Calif.
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2000-11-28 16:05 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-11-28 11:39 Selecting empty columns Hans-Jürgen Schönig <hs@cybertec.at>
2000-11-28 16:05 ` Ross J. Reedstrom <reedstrm@rice.edu>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox