我一直收到错误00933:此查询的语句未正确结束。我不明白为什么会发生这种情况。这是一个Oracle数据库,我使用的是TOAD。问题出在" insert“语句上;如果我只在insert语句之后运行代码,它就能正常工作。提前谢谢。
Insert into uscg_awdattachment_request columns(seq, uscgextractkey)
select tooth.seq, 1 group_num
from(
select b.seq, b.uncompressed, a.docnum, b.dockey, b.verkey, b.filename, b.storedfileblob, b.updatetimestamp, row_number() over(partition by a.dockey order by b.updatetimestamp asc) as obs_no
from (select c.*
from prism.supportdoc c) b
left join prism.header a
on a.dockey = b.dockey and a.verkey = b.verkey) tooth
where tooth.obs_no = 1;
更新:根据互联网,你不能在insert语句中使用joins。我需要找到另一种方法来连接这两个表,而不使用" join“语法。
发布于 2020-10-08 23:20:37
测试过该语句
包含所需表说明的
https://stackoverflow.com/questions/64265091
复制相似问题