Oracle EBS 作業記錄

2015年5月15日 星期五

Update data from another Table

UPDATE (
SELECT b.col1 as old_col1,
       b.col2 as old_col2,
       b.col3 as old_col3,
       t.col1 as new_col1,
       t.col2 as new_col2,
       t.col3 as new_col3 
  FROM bigTable b, tempTable t
 WHERE b.col = t.col)
   SET old_col1 = new_col1,
       old_col2 = new_col2,
       old_col3 = new_col3;




參考 http://blog.csdn.net/yuhua3272004/article/details/2776121
張貼者: Unknown 於 凌晨1:17 沒有留言:
以電子郵件傳送這篇文章BlogThis!分享至 X分享至 Facebook分享到 Pinterest
較新的文章 較舊的文章 首頁
訂閱: 文章 (Atom)

網誌存檔

  • ►  2019 (1)
    • ►  3月 (1)
  • ►  2017 (1)
    • ►  6月 (1)
  • ▼  2015 (2)
    • ▼  5月 (1)
      • Update data from another Table
    • ►  4月 (1)
  • ►  2014 (8)
    • ►  12月 (1)
    • ►  10月 (6)
    • ►  3月 (1)
  • ►  2013 (8)
    • ►  10月 (3)
    • ►  9月 (1)
    • ►  7月 (1)
    • ►  3月 (1)
    • ►  1月 (2)
  • ►  2012 (3)
    • ►  12月 (1)
    • ►  4月 (2)

關於我自己

Unknown
檢視我的完整簡介
輕柔雅緻主題. 技術提供:Blogger.