From: Gerhard Dieringer <DieringG@eba-haus.de>
To: hs@cybertec.at
To: pgsql-sql@postgresql.org
Subject: Antw: Selecting empty columns
Date: Tue, 28 Nov 2000 13:09:59 +0100
Message-ID: <sa23aeb2.056@kopo001> (raw)
>>> Hans-Jürgen Schönig <hs@cybertec.at> 28.11.2000 12.39 Uhr >>>
> 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
try:
update tablename set columnname=0 where columnname is null;
Gerhard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: DieringG@eba-haus.de, hs@cybertec.at
Subject: Re: Selecting empty columns
In-Reply-To: <sa23aeb2.056@kopo001>
References: <sa23aeb2.056@kopo001>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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