Home All Groups Group Topic Archive Search About

invalid character or 'sql command not properly ended'

Author
12 Apr 2007 4:22 PM
fredd00
Hi

I'm trying to run multiple inserts in oracle 9i

my statement is like this

insert into y (col1, col2 , col3) values (1,2,3);
insert into y (col1, col2 , col3) values (2,3,4);
insert into y (col1, col2 , col3) values (3,4,5);
insert into y (col1, col2 , col3) values (4,5,6);
commit;

when i send the query to the oracle server I get the error invalid
character (because of the semicolon)
if i remove the semicolon i get the error 'Sql command not properly
ended'

what whould be used to run multiple insert

also is i possible to do multiple select ?

thanks

AddThis Social Bookmark Button