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 -> Selecting null in the select list.

Selecting null in the select list.

From: DaLoverhino <DaLoveRhino_at_hotmail.com>
Date: 14 Dec 2005 15:15:07 -0800
Message-ID: <1134602107.053111.44380@g43g2000cwa.googlegroups.com>


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. Received on Wed Dec 14 2005 - 17:15:07 CST

Original text of this message

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