Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Selecting null in the select list.

Re: Selecting null in the select list.

From: Sybrand Bakker <postbus_at_sybrandb.demon.nl>
Date: Thu, 15 Dec 2005 01:03:28 +0100
Message-ID: <plc1q193qed7mf2fqqu5922mvumkvb8o7q@4ax.com>


On 14 Dec 2005 15:15:07 -0800, "DaLoverhino" <DaLoveRhino_at_hotmail.com> wrote:

>Suppose I have a sql statement like so:
>
>select kind, amount from petstore;
>
>
>Now, I want to change it so that amount is always null. I want to do
>this, because we have some C++ code that assumes a fixed number of
>fields returned (for this example, it's 2).
>
>
>Is it possible to do the following:
>
>select kind, null from petstore;
>
>It appears to work fine from the sqlplus prompt. But, I'm wondering if
>this will trip up any OCCI/OCI libraries?
>
>
>thanks.

Provided you use NULL indicator variables on the affected columns: NO

--
Sybrand Bakker, Senior Oracle DBA
Received on Wed Dec 14 2005 - 18:03:28 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US