SQL SERVER常用的增删改查
一、插入另一张表中的数据
insert table_name (uuid,name,age,addres) select uuid,name,age,addres from table2
二、关联其他表更新数据
update table1
set
id=table2.id
from
table2
where
table1.name=table2.name
and
table1.sex='男'
...
原创
2018-12-17 15:51:01 ·
169 阅读 ·
0 评论