在MySQL中查找不同列中的重复值

huangapple go评论123阅读模式
英文:

Find a duplicated value from different columns in mySQL

问题

你想找到两列中具有重复文本的所有记录,以及了解除重复文本之外这两列中文本的总数。

英文:

I have a table with two text column, and I would like to find all the records that have duplicate text in this two columns. What is the best query I can use to find the duplicates?

and to understand the total number of texts in this two columns except duplicated.

答案1

得分: 1

以下是翻译的部分:

你可以通过以下SQL查询来实现。

select * from 表名 where 列1 == 列2
英文:

You can do by below sql query.

 select * from tableName where column1 == column2

huangapple
  • 本文由 发表于 2023年4月10日 18:17:27
  • 转载请务必保留本文链接:https://go.coder-hub.com/75976222.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定