Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

using a Timestamp value within a dynamic sql statement - forum topic by bala2121

$
0
0

Hi All,
I want to execute the below call procedure statement using a dynamic sql within a For loop of stored procedure.
call dbc.sysexecsql ('CALL dbname.'||proc_name_variable||'('||v1||','||v2||','||v3||','||v4||','||''||timestamp_variable||''||');' ) ;
But When i try to compile the procedure i am getting the following error.
 'Missing/Invalid SQL statement'E(5407):Invalid operation for DateTime or Interval.'
please suggest any possible solutions on this. I need to enclose the timestamp variable within quotes while calling that internal procedure.
 
Thanks,
Bala.
 

Forums: 

Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>