Handling of nullable columns in embedded SQL - Mailing list pgsql-docs

From Rolf Cohn
Subject Handling of nullable columns in embedded SQL
Date
Msg-id 37394797.B884C573@alcatel.no
Whole thread Raw
List pgsql-docs
Hello!

How to treat NULL values in queries?


1) Is there an equivalent to the IFNULL (CA-Ingres)/NVL (Oracle)
functions?

Example:
EXEC SQL SELECT IFNULL(foo, -1) FROM bar INTO :dummy;

2) Is it possible to create a host variable
to put the NULL value indicator which then can be checked?

Example:
EXEC SQL SELECT foo FROM bar INTO :dummy_null_ind:dummy;

I have gone through the PostgreSQL Programmer's Guide and
the PostgreSQL User's Guide but did not find the answers.
Did I miss something?


Regards
-- 
vvvvvvvvv --------------------------------------------------------vvvvvvv  Rolf Cohn         vvvvv   Alcatel Telecom
vvv    Norway AS        E-mail: mailto:Rolf.Cohn@alcatel.no   v
-------------------------------------------------------------


pgsql-docs by date:

Previous
From: Thomas Lockhart
Date:
Subject: Re: Doc
Next
From: bbaale
Date:
Subject: New user ...