会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
尤念
博客园
首页
新随笔
联系
订阅
管理
2024年2月18日
SQL批量更新部分B表的数据,数值来源于A表,根据AB关联字段作为过滤条件
摘要: 1.需求描述 A表是全数据表,需要批量更新B表制定列的部分数据。条件是B表的另外一列定于A表的另外一列 2.实例代码 update B set col1 = A.col1 from A where B.col2=A.col2 and b.col2>'2024-01-11'; 3.代码说明 where
阅读全文
posted @ 2024-02-18 17:12 尤念
阅读(52)
评论(0)
推荐(0)
编辑
公告