Defining string to represent null values in select

From: Brent Wood <pcreso(at)yahoo(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Defining string to represent null values in select
Date: 2008-11-06 22:09:49
Message-ID: 787214.36592.qm@web33203.mail.mud.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


Hi,

I can specify the text used to represent a null value in output from copy, but I'd like to do something similar is select output, eg: all NULL values are represented by NA or NaN.

I can't find anything in the docs about this.

This could be managed using case statements around all the columns in the query, but is there a simpler way, like setting a system variable to specify this?

Thanks,

Brent Wood

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michelle Konzack 2008-11-06 22:10:16 Re: Semi-customized queries? Subset of SQL? Accessing the parser? Injection?
Previous Message Michelle Konzack 2008-11-06 21:43:18 How to design a "customer" TABLE which hold credit card infos and other payments?