replace NULL

From: "Kancha (dot)" <kancha2np(at)yahoo(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: replace NULL
Date: 2002-04-09 12:00:03
Message-ID: 20020409120003.46895.qmail@web14910.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hello

i want to run a select query on a table. eg:

select age from people;

if age is NULL then I want to replace it by some text,
say "SHY" so the output is like

name age
me 10
jane SHY
jack 32

how do i make this replacement of null value to some text

__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Andreas Joseph Krogh 2002-04-09 12:14:49 Re: replace NULL
Previous Message Andreas Joseph Krogh 2002-04-09 11:49:36 Re: Scadinavian characters in regular expressions