DB2--update set=(select)語法總結


   最常用update語法是:

  update 表名 set 字段=值 where 條件

   當更新內容需要select結果獲取,語法:

  update table1 set a1,a2,a3=(select b1,b2,b3 from table2 where table1.column_name=table2.column_name)


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM