update table1 
set 
    field1 = 'value1'
from 
    table1
where 
    field2 = '111'
    and 
    exists(select * from table2 where id=table1.id and field3 = '2222')

解决方案 »

  1.   

    update table1 set field1 = 'value1'
    from table1,table2
    where table1.field2 = '111'
    and table1.id = table2.id
    and table2.field3 = '2222' ;
      

  2.   

    update table1 set field1 = 'value1'
    where field2 = '111'
    and id in (select id from table2 where field3 = '2222') 
      

  3.   

    oracle中用这种写法比较好:libin_ftsafe(子陌红尘)
      

  4.   

    已经给分,哪位可以提供pl/sql语法的电子书下载?
      

  5.   

    我用Ora9iSQLRef.chm,不知道你要不要