JUST DO IT ~

我只想当个程序员

sql 差异2

 

update temp_Test_pm_order t
       
set ( t.stkname_  , t.STKTP_ ,  t.HIGHPRICE_ ,  t.LOWPRICE_ ,  t.PRICEUNIT_  ,  t.CURRENCY_CODE_ 
          ,  t.ISSTOP_ ,t.DEALUNITNAME_ ,t.MARTUNIT_ ,  t.UPDEALNUM_ , t.LOWDEALNUM_ , t.BUY_UNIT_ ,t.SALE_UNIT_
           , t.IV_UNIT_  )
  
= (select stkname_  ,d.STKTP_ ,d.HIGHPRICE_ , d.LOWPRICE_ ,d.PRICEUNIT_ , d.CURRENCY_CODE_ 
          , d.ISSTOP_, d.DEALUNITNAME_  , d.MARTUNIT_  , d.UPDEALNUM_ ,d.LOWDEALNUM_ , d.BUY_UNIT_ ,d.SALE_UNIT_
          , d.IV_UNIT_ 
      
from dl_stkcode d 
      
where d.exchgcode_ = t.exchgcode_ and d.stkcode_ = t.stkcode_)

 

 

 

UPDATE STATEMENT, GOAL = CHOOSE       
 UPDATE Object owner=IDMP Object name=TEMP_TEST_PM_ORDER     
  TABLE ACCESS FULL Object owner=IDMP Object name=TEMP_TEST_PM_ORDER     
  TABLE ACCESS BY INDEX ROWID Object owner=IDMP Object name=DL_STKCODE     
   INDEX UNIQUE SCAN Object owner=IDMP Object name=PK_DL_STKCODE     

 

 


update temp_Test_pm_order t
       
set 
           t.STKTP_         
= (select d.STKTP_
                                 
from dl_stkcode d
                                
where d.exchgcode_ = t.exchgcode_
                                  
and d.stkcode_ = t.stkcode_),
           t.HIGHPRICE_     
= (select d.HIGHPRICE_
                                 
from dl_stkcode d
                                
where d.exchgcode_ = t.exchgcode_
                                  
and d.stkcode_ = t.stkcode_),
           t.LOWPRICE_      
= (select d.LOWPRICE_
                                 
from dl_stkcode d
                                
where d.exchgcode_ = t.exchgcode_
                                  
and d.stkcode_ = t.stkcode_),
           t.PRICEUNIT_     
= (select d.PRICEUNIT_
                                 
from dl_stkcode d
                                
where d.exchgcode_ = t.exchgcode_
                                  
and d.stkcode_ = t.stkcode_),
           t.CURRENCY_CODE_ 
= (select d.CURRENCY_CODE_
                                 
from dl_stkcode d
                                
where d.exchgcode_ = t.exchgcode_
                                  
and d.stkcode_ = t.stkcode_),
           t.ISSTOP_        
= (select d.ISSTOP_
                                 
from dl_stkcode d
                                
where d.exchgcode_ = t.exchgcode_
                                  
and d.stkcode_ = t.stkcode_),
           t.DEALUNITNAME_  
= (select d.DEALUNITNAME_
                                 
from dl_stkcode d
                                
where d.exchgcode_ = t.exchgcode_
                                  
and d.stkcode_ = t.stkcode_),
           t.MARTUNIT_      
= (select d.MARTUNIT_
                                 
from dl_stkcode d
                                
where d.exchgcode_ = t.exchgcode_
                                  
and d.stkcode_ = t.stkcode_),
           t.UPDEALNUM_     
= (select d.UPDEALNUM_
                                 
from dl_stkcode d
                                
where d.exchgcode_ = t.exchgcode_
                                  
and d.stkcode_ = t.stkcode_),
           t.LOWDEALNUM_    
= (select d.LOWDEALNUM_
                                 
from dl_stkcode d
                                
where d.exchgcode_ = t.exchgcode_
                                  
and d.stkcode_ = t.stkcode_),
           t.BUY_UNIT_      
= (select d.BUY_UNIT_
                                 
from dl_stkcode d
                                
where d.exchgcode_ = t.exchgcode_
                                  
and d.stkcode_ = t.stkcode_),
           t.SALE_UNIT_     
= (select d.SALE_UNIT_
                                 
from dl_stkcode d
                                
where d.exchgcode_ = t.exchgcode_
                                  
and d.stkcode_ = t.stkcode_),
           t.IV_UNIT_       
= (select d.IV_UNIT_
                                 
from dl_stkcode d
                                
where d.exchgcode_ = t.exchgcode_
                                  
and d.stkcode_ = t.stkcode_) 

 

 

 

 

 

 

   

 

UPDATE STATEMENT, GOAL = CHOOSE       
 UPDATE Object owner=IDMP Object name=TEMP_TEST_PM_ORDER     
  TABLE ACCESS FULL Object owner=IDMP Object name=TEMP_TEST_PM_ORDER     
  TABLE ACCESS BY INDEX ROWID Object owner=IDMP Object name=DL_STKCODE     
   INDEX UNIQUE SCAN Object owner=IDMP Object name=PK_DL_STKCODE     
  TABLE ACCESS BY INDEX ROWID Object owner=IDMP Object name=DL_STKCODE     
   INDEX UNIQUE SCAN Object owner=IDMP Object name=PK_DL_STKCODE     
  TABLE ACCESS BY INDEX ROWID Object owner=IDMP Object name=DL_STKCODE     
   INDEX UNIQUE SCAN Object owner=IDMP Object name=PK_DL_STKCODE     
  TABLE ACCESS BY INDEX ROWID Object owner=IDMP Object name=DL_STKCODE     
   INDEX UNIQUE SCAN Object owner=IDMP Object name=PK_DL_STKCODE     
  TABLE ACCESS BY INDEX ROWID Object owner=IDMP Object name=DL_STKCODE     
   INDEX UNIQUE SCAN Object owner=IDMP Object name=PK_DL_STKCODE     
  TABLE ACCESS BY INDEX ROWID Object owner=IDMP Object name=DL_STKCODE     
   INDEX UNIQUE SCAN Object owner=IDMP Object name=PK_DL_STKCODE     
  TABLE ACCESS BY INDEX ROWID Object owner=IDMP Object name=DL_STKCODE     
   INDEX UNIQUE SCAN Object owner=IDMP Object name=PK_DL_STKCODE     
  TABLE ACCESS BY INDEX ROWID Object owner=IDMP Object name=DL_STKCODE     
   INDEX UNIQUE SCAN Object owner=IDMP Object name=PK_DL_STKCODE     
  TABLE ACCESS BY INDEX ROWID Object owner=IDMP Object name=DL_STKCODE     
   INDEX UNIQUE SCAN Object owner=IDMP Object name=PK_DL_STKCODE     
  TABLE ACCESS BY INDEX ROWID Object owner=IDMP Object name=DL_STKCODE     
   INDEX UNIQUE SCAN Object owner=IDMP Object name=PK_DL_STKCODE     
  TABLE ACCESS BY INDEX ROWID Object owner=IDMP Object name=DL_STKCODE     
   INDEX UNIQUE SCAN Object owner=IDMP Object name=PK_DL_STKCODE     
  TABLE ACCESS BY INDEX ROWID Object owner=IDMP Object name=DL_STKCODE     
   INDEX UNIQUE SCAN Object owner=IDMP Object name=PK_DL_STKCODE     
  TABLE ACCESS BY INDEX ROWID Object owner=IDMP Object name=DL_STKCODE     
   INDEX UNIQUE SCAN Object owner=IDMP Object name=PK_DL_STKCODE     

 

 

 

 

 

posted on 2007-10-19 13:05 小高 阅读(157) 评论(0)  编辑  收藏 所属分类: Oracle


只有注册用户登录后才能发表评论。


网站导航:
 

导航

<2007年10月>
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910

统计

常用链接

留言簿(3)

随笔分类(352)

收藏夹(19)

关注的blog

手册

搜索

积分与排名

最新评论

阅读排行榜

评论排行榜