Re: Replace null values

From: Nilesh Govindarajan <lists(at)itech7(dot)com>
To: John R Pierce <pierce(at)hogranch(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:33:59
Message-ID: 4BA860D7.5020105@itech7.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 03/23/2010 11:47 AM, John R Pierce wrote:
>
>> How to convert zero length string to null ?
>
>
>
> UPDATE yourtable SET name=NULL WHERE name='';
>
>

No I don't want to replace it in the table. Just in the query result.

--
Nilesh Govindarajan
Site & Server Administrator
www.itech7.com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ian Haywood 2010-03-23 06:45:54 Re: Replace null values
Previous Message John R Pierce 2010-03-23 06:17:15 Re: Replace null values