当前位置: 代码迷 >> Oracle开发 >> 请教:一次插入多条数据有关问题
  详细解决方案

请教:一次插入多条数据有关问题

热度:13   发布时间:2016-04-24 07:46:21.0
请问:一次插入多条数据问题!
请问:一次插入多条数据问题!

对表test
create   table   (
id   number,
name   varchar(10),
age   number
)

执行
insert   into   test   values(1, 'aa ',10);
insert   into   test   values(1, 'bb ',10);
insert   into   test   values(1, 'cc ',10);

如何用一条语句插入语句

------解决方案--------------------
insert into test
Select 1, 'aa ',10 from dual union all
Select 1, 'bb ',10 from dual union all
Select 1, 'cc ',10 from dual
  相关解决方案