biaopei

oracle使用一条语句批量插入多条数据

例如我有一个test表

create table (stuid int,name varchar(20);

插入多条数据,注意不能直接使用insert into test values(1,\'a\'),(2,\'b\')之类的语句,应该使用以下语句

insert all

into test values(1,\'a\')

into test values(2,\'b\')

select 1 from dual;        #这句不知道有什么用处,但是缺少也不行

  

 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-19
  • 2022-12-23
  • 2021-06-10
猜你喜欢
  • 2022-01-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-10
  • 2021-12-22
  • 2021-08-31
相关资源
相似解决方案