Connecting Tech Pros Worldwide Forums | Help | Site Map

Prepare Statement in DB2

Newbie
 
Join Date: Jul 2007
Posts: 2
#1: Sep 26 '08
Hi All,

can i use user defined function in prepare statement?

I am trying following,

sprintf(c_stmt,"INSERT/*+ APPEND */ INTO %s VALUES(?,CHAR_TO_DATE(?,'DD-MON-YYYY')) WITH UR",V_TABLE_NAME);

EXEC SQL PREPARE ins_stmt FROM :c_stmt;

Error Code: 440 is encountred.

Thanks,
Abhi

sakumar9's Avatar
Expert
 
Join Date: Jan 2008
Location: Bangalore
Posts: 127
#2: Oct 1 '08

re: Prepare Statement in DB2


are you sure that you are getting 440 code from this PREPARE only??

As far as my knowledge is concerned, it should not happen at precompile time atleast. Are you getting this error at run time or compile time??
Reply