当前位置:网站首页>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
怎么再更进一步知道是哪个字段发生了变化?只能一个个字段对比吗?
边栏推荐
猜你喜欢
插入排序—直接插入排序和希尔排序
VoLTE基础学习系列 | 什么是SIP和IMS中的Forking
MATLAB program design and application of MATLAB 2.5
日志导致线程Block的这些坑,你不得不防
Image lossless compression software which works: try completely free JPG - C image batch finishing compression reduces weight tools | latest JPG batch dressing tools download
Offer刷题——1
图片无损压缩软件哪个好用:试试完全免费的JPG-C 图片批量修整压缩减肥工具吧 | 最新jpg批量修整工具下载
NIO programming
VoLTE Basic Learning Series | Enterprise Voice Network Brief
电磁兼容简明教程(6)测试项目
随机推荐
零代码网站开发利器:WordPress
pytest接口自动化测试框架 | 集成Allure测试报告
22牛客多校1 C.Grab the Seat (几何 + 暴力)
Electromagnetic compatibility introductory tutorial (6) test project
案例实践 --- Resnet经典卷积神经网络(Mindspore)
mysql查看cpu使用情况
拳头游戏免版权音乐下载,英雄联盟无版权音乐,可用于视频创作、直播
C语言学习概览(一)
图像基本操作的其他内容
升级为重量级锁,锁重入会导致锁释放?
flink sql-client,怎么处理源端与目标增加端,sql-client包括映射表与JOB如
如何使用Photoshop合成星轨照片,夜空星轨照片后期处理方法
Fist game copyright-free music download, League of Legends copyright-free music, can be used for video creation, live broadcast
special day to remember
Upgrade to heavyweight lock, lock reentrancy will lead to lock release?
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
Introduction to the basic principles, implementation and problem solving of crawler
类似 MS Project 的项目管理工具有哪些
Vim简介
电磁兼容简明教程(6)测试项目