【发布时间】:2017-04-27 16:13:38
【问题描述】:
我正在尝试将具有多个值和 test_id.nextval 的 2 行插入现有数据框中,而不在代码中包含列标题:
insert into x
select * from
(select 12345, 'text', test_id_seq.nextval from dual
union all
select 23589, 'other text', test_id_seq.nextval from dual);
我收到错误消息:sequence number not allowed here。所以我删除了序列号。然后出现错误not enough values。
如何将多行插入到具有 nextval id 的现有表中?
【问题讨论】: