我想在bookhangar表中插入plane_id,其中book列的值为'no'。 我bookhangar表oracle sql开发人员更新查询
hangar_id | book | plane_id
-------------------------------
han103 | no | null
han104 | yes |pla102
我试图查询
insert into bookhangar (plane_id) values('pla104') where book='no';
但它亘古不变的插入。
我尝试另一个查询
update bookhangar set plane_id='PLA104' where book='no';
它还多年平均值的工作。
首先任何行,你不能用'将更新where'子句中的INSERT语句,除非'插入... select..where '。你得到了什么错误消息的更新声明? – JSapkota
“INSERT INTO WHERE”可能有什么含义? –