Hello,
I have a stored procedure and want to execute some derived SQL.
I have tried
CALL DBC.SYSEXECSQL ('Select ' || :Measure_Calc || ';');
But do not have access
I have also tried
EXEC SQL 'Select ' || :Measure_Calc || ';'
END EXEC;
The second one should work, according to the manual. I keep getting the error mesages saying that Teradata is not expecting the EXEC or the SQL bits.
Does anyone else know how to do this?
Thanks in advance
Liam
I have a stored procedure and want to execute some derived SQL.
I have tried
CALL DBC.SYSEXECSQL ('Select ' || :Measure_Calc || ';');
But do not have access
I have also tried
EXEC SQL 'Select ' || :Measure_Calc || ';'
END EXEC;
The second one should work, according to the manual. I keep getting the error mesages saying that Teradata is not expecting the EXEC or the SQL bits.
Does anyone else know how to do this?
Thanks in advance
Liam