sql >> Databasteknik >  >> RDS >> Oracle

Infogar flera rader i tabellen - får fel ORA-00933:SQL-kommandot avslutades inte korrekt

Fel syntax.

Antingen

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

eller

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

eller till och med

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;



  1. php-varning mysql_fetch_assoc

  2. Hur man returnerar dynamiska kolumner från grupperade värden i SQL Server (Lagrad procedur)

  3. Modul Exporterar resultat av asynkron fn

  4. Hur SQLite Char() fungerar