在PLSQL Developer运行下面的语句,提示 ora-00971: missing SET keyword
请高手给下解答.谢谢.update table1 t1, table2 t2, set t1.charge=t1.charge*(t2.re/0.1) 
where t1.stype=5
and t1.sub_id=t2.sub_id and t2.re<>'yes';

解决方案 »

  1.   

    把前面的逗号都去了还是不行,仍然提示那个错误ora-00971: missing SET keyword update table1 t1 table2 t2 set t1.charge=t1.charge*(t2.re/0.1) 
    where t1.stype=5
    and t1.sub_id=t2.sub_id and t2.re<>'yes';
      

  2.   

    而且你修改的是t1
    update table1 t1 set charge=(select t1.charge*re/0.1 from table2 
      where sub_id=t1.sub_id and re<>'yes')
    where stype=5
      

  3.   

    update table1 t1 set charge=charge*(select re/0.1 from table2 
      where sub_id=t1.sub_id and re <>'yes') 
    where stype=5
      

  4.   

    update table1 t1 set charge=charge*(select re/0.1 from table2 t2
    where t2.re<>'yes' and t1.sub_id=t2.sub_id)
    where exists (select * from table2 t3 where t1.sub_id=t3.sub_id and t3.re<>'yes')
    and t1.stype=5 
      

  5.   

    你update后面写了两个表 所以报错
      

  6.   

    -0- 1. 第2个表后面有,2. 叫你去掉, 你把两个,都去掉了3. update后面不要有两个表
      

  7.   

    update 后面不能有2个表名的