首页 > 代码库 > Oracle与Mysql插入多行数据

Oracle与Mysql插入多行数据

Oracle

一、

insert all
into students values (‘b10050501‘,‘zl‘)
into students values (‘b10050502‘,‘zjw‘)
select * from dual;

二、

 insert into students
select ‘b10050501’,‘zl‘ from dual
union
select ’b10050502‘,‘zjw‘ from dual;

 

Mysql

一、

insert into stu values(‘b10050501‘, ‘zl‘), (‘b10050502‘, ‘zl‘);

Oracle与Mysql插入多行数据