Oracle中用一個表的數據更新另外一個表的數據

轉自:http://www.2cto.com/database/201205/130987.htmlhtml 有下面兩個表:將表tab1中id值與和表tab2中id值相同的行的val更新爲tab2中val的值. select * from tab1; select * from tab2 web 最容易犯的錯誤是:update tab1 set val=(select val from tab2
相關文章
相關標籤/搜索