如何在11g中插入多个值?

时间:2018-04-21 10:51:19

标签: sql oracle sql-insert sqlplus insert-into

如何使用查询在oracle 11g中的表中插入多个值?

我试过了这个

enter image description here

1 个答案:

答案 0 :(得分:3)

使用以下DML INSERT ALL声明:

insert all into departmentstrigger values(4,'Hello') 
           into departmentstrigger values(5,'HEy There')
           into departmentstrigger values(6,'sup')
           into departmentstrigger values(7,'Hii')
  select * from dual;

SQL Fiddle Demo

有关详细说明,请参阅:Insert All Statement