1 2 3 4 5 6 7 8 9 10 11 12 13
EXEC SQL BEGIN DECLARE SECTION; static char *tbuf; EXEC SQL END DECLARE SECTION; void myfunc1() { exec sql execute immediate :tbuf; } void myfunc2() { EXEC SQL EXECUTE IMMEDIATE :tbuf; }