Oracle
 sql >> Base de données >  >> RDS >> Oracle

Insertion de plusieurs lignes dans la table - obtention de l'erreur ORA-00933 :la commande SQL ne s'est pas correctement terminée

Mauvaise syntaxe.

Soit

insert into employee (employee_id, last_name, salary)
  values (129, 'khaj', 19000);
insert into employee (employee_id, last_name, salary)
  values (130, 'ravi', 20000);

ou

insert into employee (employee_id, last_name, salary)
  select 129, 'khaj', 19000 from dual union all
  select 130, 'ravi', 20000 from dual;

ou même

insert all
  into employee (employee_id, last_name, salary) values (129, 'khaj', 19000)
  into employee (employee_id, last_name, salary) values (130, 'ravi', 20000)
select * from dual;