Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

execute immediate,ora936 error

Status
Not open for further replies.

mkey

Programmer
Oct 3, 2001
288
0
0
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!
 
Why do you have || before X? What are you concatenating?
 
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;
 
Hi mkey,
can u plz post the exact error u are getting?..cause I was having problems with execute immediate yesterday
 
Hi mkey,

try this out..

execute immediate
'insert into my_table values('||X||chr(44)||Y||')';

VGG
 
The exact error message is:
ORA-00936: missing expression

Regards,
mkey
 
THANK YOU VGG. YOU ARE A LIVE SAVER.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top