当前位置:网站首页>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
怎么再更进一步知道是哪个字段发生了变化?只能一个个字段对比吗?
边栏推荐
- Explosive 30,000 words, the hardest core丨Mysql knowledge system, complete collection of commands [recommended collection]
- Go supports OOP: use struct instead of class
- C语言学习概览(二)
- 搜索框字符自动补全
- 05-SDRAM: Arbitration
- 数据分析6
- Golang: go static file processing
- JVM: Runtime Data Area - PC Register (Program Counter)
- R语言使用tidyquant包的tq_transmute函数计算持有某只股票的天、月、周收益率、ggplot2使用条形图可视化股票月收益率数据、使用百分比显示Y轴坐标数据、使用不同的色彩表征正负收益率
- 13 - JUC CountDownLatch concurrent programming
猜你喜欢
类似 MS Project 的项目管理工具有哪些
MVVM project development (commodity management system 1)
数据分析5
第02章 MySQL的数据目录【1.MySQL架构篇】【MySQL高级】
Zero-code website development tool: WordPress
Chapters 6 and 7 of Huawei Deep Learning Course
app 自动化 通过工具查看app 元素 (三)
华为深度学习课程第九章——卷积神经网络以及案例实践
案例实践 --- Resnet经典卷积神经网络(Mindspore)
Data Analysis 6
随机推荐
企业数据虚拟化综合指南
How to generate and configure public key certificate in Alipay
根据指定区域内容生成图片并进行分享总结
pytest interface automation testing framework | skip test classes
Classwork (7) - #598. remainder operation (mod)
special day to remember
LeetCode 415:字符串相加
【一句话攻略】彻底理解JS中的回调(Callback)函数
日志导致线程Block的这些坑,你不得不防
mysql查看cpu使用情况
22 Grab the Seat 1 C.Grab the Seat (Geometry + Violence)
Json对象和Json字符串的区别
I have three degrees, and I have five faces. I was "confessed" by the interviewer, and I got an offer of 33*15.
特别数的和
监听父元素宽高,自适应插件大小
Chapter 9 of Huawei Deep Learning Course - Convolutional Neural Network and Case Practice
如何使用Photoshop合成星轨照片,夜空星轨照片后期处理方法
华为深度学习课程第九章——卷积神经网络以及案例实践
Practical training Navicat Chinese and English mode switching
R语言使用gt包和gtExtras包优雅地、漂亮地显示表格数据:gtExtras包的pad_fn函数与gt::fmt函数一起用于填充包含数值的特定列、对数据列的数值进行十进制对齐(从小数点对齐)