update tb as a set col1=b.col1, col2=b.col2 -- 需要替换的字段列表 from ( -- 用于替换的记录 select * from tb where id=2 ) b where a.id=1 -- 被替换记录的查询条件 ;
954
社区成员
1,459
社区内容
加载中
试试用AI创作助手写篇文章吧