0
使用select我试图在同一时间使用选择多行插入表如下INSERT INTO在Oracle
insert into myTable values(myTable_Seq.nextval,100,select column1 from anotherTable where column1 not in(10,20));
这里我最后的值从另一个表WHERE条件选择的值。
我在这里失败了。它给了缺少的表达式错误。
我们可以这样做,还是必须做一个forloop。
在此先感谢。
还有的例子就如何做到这一点的计算器没有短缺(见由Ryan答案在这里,https://stackoverflow.com/questions/7323407/insert-select-statement-in-oracle-11g )。 –