积极答复者
查找两个表中xh字段重复的记录

问题
答案
全部回复
-
你好,
以下查询也可以查找出两表中的某个字段都相同的记录。
select * from table1 t1 where exists(select 1 from table2 t2 where t2.xh=t1.xh)
""SQL Server related"" forum will be migrated to a new home on Microsoft Q&A SQL Server!
We invite you to post new questions in the "SQL Server related" forum’s new home on Microsoft Q&A SQL Server !
For more information, please refer to the sticky post.- 已建议为答案 Cris ZhanMicrosoft contingent staff 2020年8月11日 0:54
-
你好,
如果您觉得我的回复对你有所帮助,请帮忙‘标记为答案'以帮助其他社区成员迅速找到有用的答复。你可以标记多个有效答案。
此外,如果您还有其他问题,请随时提出。
谢谢
""SQL Server related"" forum will be migrated to a new home on Microsoft Q&A SQL Server!
We invite you to post new questions in the "SQL Server related" forum’s new home on Microsoft Q&A SQL Server !
For more information, please refer to the sticky post.
- 已编辑 Cris ZhanMicrosoft contingent staff 2020年8月28日 1:20