Re: Replace null values

From: John R Pierce <pierce(at)hogranch(dot)com>
To: Nilesh Govindarajan <lists(at)itech7(dot)com>
Cc: Osvaldo Kussama <osvaldo(dot)kussama(at)gmail(dot)com>, pgsql-general General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Replace null values
Date: 2010-03-23 06:17:15
Message-ID: 4BA85CEB.4020901@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


> How to convert zero length string to null ?

UPDATE yourtable SET name=NULL WHERE name='';

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Nilesh Govindarajan 2010-03-23 06:33:59 Re: Replace null values
Previous Message A. Kretschmer 2010-03-23 05:56:35 Re: Create a function that updates the record with and timestamps