【发布时间】:2014-08-15 09:02:51
【问题描述】:
我正在尝试做一个本质上非常简单的任务,结果是:
ORA-00928:缺少 SELECT 关键字
我要做的就是将periods 的结果保存到表globalTable 中。选择工作正常(我返回了行)但是一旦我用插入替换它,我就会收到上述错误。
create global temporary table globalTable
(
ids number(11)
);
with periods as
(
select cl.id uniqueId
from inv_mpan_hh_con_lines cl
left join invoice_vat_lines vl on
cl.invoice_id = VL.INVOICE_ID
where rownum < 4
)
--//Issue occurs at insert keyword. If I comment it and uncomment select it works as expected//--
--select uniqueId
insert into globalTable
from periods;
任何指针都非常感谢。
【问题讨论】:
标签: sql oracle oracle10g sql-insert toad