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 -> Pro*C and dynamic SQL

Pro*C and dynamic SQL

From: Brian Beld <BB_at_nospam.com>
Date: 03 Apr 2003 12:31:25 GMT
Message-ID: <200343-133125-167656@foorum.com>

Hello,

I try to use dynamic sql with a bind variable but it doesn't work :

strcpy(MyString, "SELECT MyTable.NEXTVAL from dual"); EXEC SQL PREPARE S FROM :MyString;
EXEC SQL EXECUTE S INTO :nSequence;

=> nSequence is always = 0

(of course, the sequence is not null when I execute the query with SQL*Plus)

What is the problem ?

Thanks in advance.

-- 
Ce message a ete poste via la plateforme Web club-Internet.fr
This message has been posted by the Web platform club-Internet.fr

http://forums.club-internet.fr/
Received on Thu Apr 03 2003 - 06:31:25 CST

Original text of this message

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