Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> ProC/C++ question
It is possible to do this:
EXEC SQL BEGIN DECLARE SECTION;
int p1; sql_cursor s;
but it is not possible to do this:
EXEC SQL BEGIN DECLARE SECTION;
char szStatement[255]; sql_cursor s;
EXEC SQL PREPARE SM FROM :szStatement;
EXEC SQL DECLARE :s CURSOR for SM;
EXEC SQL OPEN :s;
In other words, I can fetch from a cursor that is a variable, but I can neither declare nor open it. The problem is, that I have to manage different cursors at the same time. Is there a way to do this?
Thanks Received on Wed Apr 28 1999 - 07:25:05 CDT
![]() |
![]() |