当前位置:   article > 正文

oracle插入数据方式,Oracle批量插入数据的三种方式

oracle批量新增

第一种:

begin

insert into tableName(column1, column2, column3...) values(value1,value2,value3...);

insert into tableName(column1, column2, column3...) values(value1,value2,value3...);

insert into tableName(column1, column2, column3...) values(value1,value2,value3...);

...

end;

第二种:

insert into tableName(column1, column2, column3...) values(value1,value2,value3...);

insert into tableName(column1, column2, column3...) values(value1,value2,value3...);

insert into tableName(column1, column2, column3...) values(value1,value2,value3...);

第三种(利用中间表):

insert into tableName(column1(主键),column2,column3...)

select tableNames_seq.nextval,,column2,column3... from (

select value1 column2,value2 column3,value3 column4 from dual

union

select value1 column2,value2 column3,value3 column4 from dual

union

select value1 column2,value2 column3,value3 column4 from dual

union

select value1 column2,value2 column3,value3 column4 from dual

)

本文内容由网友自发贡献,转载请注明出处:https://www.wpsshop.cn/w/我家小花儿/article/detail/871267
推荐阅读
相关标签
  

闽ICP备14008679号