![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
笔记
qq_35978699
这个作者很懒,什么都没留下…
展开
-
数据更新sql server
select * from Table_1 ;select * from Table_2;select b.name,b.salary from Table_1 a inner join Table_2 b on a.id=b.id;--更新一条数据update Table_1 set salary=(select salary from Table_2 where id='1') where id='1';--A表数据更新到B表(*更新多条)update Table_1 SET T...原创 2020-06-30 11:34:59 · 85 阅读 · 0 评论 -
update set from 语句用法
关键字: update set from下面是这样一个例子:两个表a、b,想使b中的memo字段值等于a表中对应id的name值 表a:id, name 1 王 2 李 3 张 表b:id,ClientName 1 2 3 (MS SQL Server)语句:u...原创 2020-06-30 10:11:20 · 1968 阅读 · 0 评论