Aug 21, 2002 #1 mkey Programmer Oct 3, 2001 288 CA my execute immediate statement look like this: execute immediate 'insert into my_table values(||X||chr(44)||Y)'; both X and Y are variables. What is wrong with this statement? Thanks!
my execute immediate statement look like this: execute immediate 'insert into my_table values(||X||chr(44)||Y)'; both X and Y are variables. What is wrong with this statement? Thanks!
Aug 21, 2002 #2 karluk MIS Nov 29, 1999 2,485 US Why do you have || before X? What are you concatenating? Upvote 0 Downvote
Aug 21, 2002 Thread starter #3 mkey Programmer Oct 3, 2001 288 CA I'm concatenating the variable: If flag = True Then X:= 3; Y:= 5; xecute immediate 'insert into pop_lat_long value(||dcXc||chr(44)||dcYc)'; End If; Upvote 0 Downvote
I'm concatenating the variable: If flag = True Then X:= 3; Y:= 5; xecute immediate 'insert into pop_lat_long value(||dcXc||chr(44)||dcYc)'; End If;
Aug 21, 2002 #4 rohanem Programmer Aug 16, 2002 64 US Hi mkey, can u plz post the exact error u are getting?..cause I was having problems with execute immediate yesterday Upvote 0 Downvote
Hi mkey, can u plz post the exact error u are getting?..cause I was having problems with execute immediate yesterday
Aug 21, 2002 #5 vgg Programmer Aug 5, 2002 44 GB Hi mkey, try this out.. execute immediate 'insert into my_table values('||X||chr(44)||Y||')'; VGG Upvote 0 Downvote
Aug 21, 2002 Thread starter #6 mkey Programmer Oct 3, 2001 288 CA The exact error message is: ORA-00936: missing expression Regards, mkey Upvote 0 Downvote
Aug 21, 2002 Thread starter #7 mkey Programmer Oct 3, 2001 288 CA THANK YOU VGG. YOU ARE A LIVE SAVER. Upvote 0 Downvote