日期:2014-05-16  浏览次数:20841 次

oracle update语句优化
 update t_fim_work_time_list_app a set a.accept_payment_type1=
      (select t.record_id from t_fim_accept_payment_type t 
      where t.accept_payment_type1=pPaymentType1
      and t.accept_payment_type2=pPaymentType2),a.accept_payment_type2=a.accept_payment_type1
      where a.type=pType and a.asset_type_num=pTypeNum
      and a.worktimelist_record_id in 
      (select l.record_id from t_fim_work_time_list l
       where l.cost_month=pCostMonth);
谁能告诉我这个怎么优化!
Oracle 性能优化

------解决方案--------------------
优化这东西 最好把 执行计划和统计信息一起贴上来
如果测试数据能一起上来那最好
------解决方案--------------------
执行计划贴出来,统计信息就免了吧。
再就是表及数据情况最好能提供下。
------解决方案--------------------
如果更新记录比较少的话,先查查连接条件能否走索引