首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > oracle >

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

2012-01-15 
请问:一次插入多条数据问题!请问:一次插入多条数据问题!对表testcreatetable(idnumber,namevarchar(10),ag

请问:一次插入多条数据问题!
请问:一次插入多条数据问题!

对表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

热点排行