update 更新多个关联字段

update t_gdzc_zc_info_ t

    set (t.ADDRESS, t.DBADRESSPRE, t.Stationname, t.SIGNALSOURCETAG) =

        (select a.DBADDRESS, a.ADDRESS, a.STATIONNAME, a.SIGNALSOURCETAG

          from T_UPLOAD_XLS_GDZC_ZC_INFO a

          where t.card_code = a.card_code

            and a.batch_id = 'db111')

  WHERE EXISTS

  (SELECT 1FROM T_UPLOAD_XLS_GDZC_ZC_INFO a WHERE t.card_code = a.card_code and a.batch_id = 'db111');

oracle数据库语法

你可能感兴趣的:(update 更新多个关联字段)