Antw: Selecting empty columns - Mailing list pgsql-sql

From Gerhard Dieringer
Subject Antw: Selecting empty columns
Date
Msg-id sa23aeb2.056@kopo001
Whole thread Raw
List pgsql-sql
>>> 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





pgsql-sql by date:

Previous
From: Colleen Williams
Date:
Subject: Re: Persistent Connects (pg_pconnect)
Next
From: "pgsql-sql"
Date:
Subject: Re(2): 7.0.3 BUG