Hi Guys,
I have TERADATA STORED procedure that have dynamic sql inside.
I would like to check the output the dynamic sql compiled and got struggle with the syntax even after i did the google.
Your help would be appreciated.
Thanks,
I have TERADATA STORED procedure that have dynamic sql inside.
I would like to check the output the dynamic sql compiled and got struggle with the syntax even after i did the google.
Code:
SET v_SQL = 'SELECT TOP 10* from table name where id = ' || v_number || ';';
-- I would like to check the output of v_sql before I execute
CALL DBC.SysExecSQL(:v_SQL);
Your help would be appreciated.
Thanks,