Oracle
 sql >> Database >  >> RDS >> Oracle

Inserimento di più righe nella tabella - errore ORA-00933:comando SQL non terminato correttamente

Sintassi errata.

O

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

o

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

o anche

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;