-
Pro*C Dynamic table name for a cursor
Hi,
I have been researching about this topic, but i cannot find the specific answer for Pro*C
I have to use Pro*C since its a change in a working script.
But if i try to use something like this:
EXEC SQL BEGIN DECLARE SECTION;
char table[25];
EXEC SQL VAR tabla IS STRING;
EXEC SQL DECLARE c1 CURSOR FOR
SELECT
c1
from :table;
when i try to compile i get an error because of the variable :table.
Any help will be appreciated.
Regards.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|