当前位置:网站首页>sqlserver 对比两张表的差异
sqlserver 对比两张表的差异
2022-08-01 07:37:00 【CSDN问答】
sql server
Except可以对比两个表的差异,那还能不能更进一步的知道是哪个字段存在差异?
create table test1
(name varchar(20),age int,sex varchar(5),tel varchar(20))
create table test2
(name varchar(20),age int,sex varchar(5),tel varchar(20))
insert into test1 values
('张三','20','男','123456'),
('李四','22','女','135791')
insert into test2 values
('张三','20','女','123456'),
('李四','22','女','135791')
/对比知道张三的数据发生了变化/
select * from test1
except
select * from test2
怎么再更进一步知道是哪个字段发生了变化?只能一个个字段对比吗?
边栏推荐
- The use of Golang: go template engine
- Flink SQL - client, how to deal with the source side and to increase the target, the SQL - client including mapping table and the JOB such as
- my creative day
- GO error handling
- 我说过无数遍了:从来没有一种技术是为灵活组合这个目标而设计的
- 华为深度学习课程第九章——卷积神经网络以及案例实践
- Vim扩展内容
- LabVIEW RT中的用户界面更新速度
- zip打包目录所有文件(含隐藏文件/夹)
- special day to remember
猜你喜欢
随机推荐
2022杭电多校第二场1011 DOS Card(线段树)
选择排序—直接选择排序和堆排序
Golang:go开启web服务
基于百度OCR的网站验证码在线识别
支付宝如何生成及配置公钥证书
JVM: Runtime Data Area - PC Register (Program Counter)
Gethostbyname \ getaddrinfo DNS domain name IP address is not safe
Golang:go获取url和表单属性值
三维坐标系距离
【手撕AHB-APB Bridge】~ AHB地址总线的低两位为什么不用来表示地址呢?
GO错误处理方式
zip打包目录所有文件(含隐藏文件/夹)
LeetCode240+312+394
app 自动化 打开app (二)
Monitor the width and height of the parent element, adapt to the size of the plug-in
special day to remember
my creative day
特别数的和
Pytest | skip module interface test automation framework
22牛客多校1 I. Chiitoitsu (概率dp)