it's possible to execute a string as a SQL query in C and get the result? I'm trying to compile this code:
EXEC SQL
EXECUTE IMMEDIATE : sql_formula INTO :sql_prec_desconto_mp;
But I've this error:
Error at line 10548, column 35 in file
D:\syncs\AIX\fuentes\funcn\niv2\src\rutin as.pc
EXECUTE IMMEDIATE : sql_formula INTO :sql_prec_desconto_mp;PCC-S-02201, Encountered the symbol "INTO" when expecting one of the following:
; ( [ . ++ -- ->
How can I get the result of the SQL query? If I remove the INTO clause I can compile without errors.
Thanks in advance.