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)

posted on 2015-03-31 23:01  gloria-hh  阅读(15393)  评论(2)    收藏  举报

导航