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: SELECT and Pro*C/C++

Re: SELECT and Pro*C/C++

From: Alex Vinokur <alexander.vinokur_at_telrad.co.il>
Date: Tue, 12 Oct 1999 04:37:24 -0700
Message-ID: <2750ac20.a7669fa7@usw-ex0102-009.remarq.com>


In article <7tv3c3$gpe$1_at_nnrp1.deja.com>, Alex Vinokur <alexander.vinokur_at_telrad.co.il> wrote:
> Hi,
> ------------------------------------
> Using in SQL the following command
> SELECT * FROM FFF;
> I see on screen what I want to see
> (all rows of table FFF);
> ------------------------------------
> ------------------------------------
> Using in Pro*C/C++ he following code
> RWCString tmp_str = "SELECT * FROM FFF";
> EXEC SQL BEGIN DECLARE SECTION;
> const char* execute_line = ((const char*)tmp_str);
> EXEC SQL END DECLARE SECTION;
> EXEC SQL EXECUTE IMMEDIATE : execute_line;
> I give nothing on screen.
> ------------------------------------

The command line

        EXEC SQL EXECUTE IMMEDIATE "SELECT * FROM FFF"; also shows no output on screen

> =================================
> === Oracle 8.0.5
> === Pro*C/C++ : Release 8.0.5.0.0
> === SunOS 5.6
> =================================
> What is wrong?
> Thanks in advance,
> Alex
> Sent via Deja.com http://www.deja.com/
> Before you buy.

Received on Tue Oct 12 1999 - 06:37:24 CDT

Original text of this message

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