How to detect duplicate data?

后端 未结 11 1575
半阙折子戏
半阙折子戏 2021-02-01 08:24

I have got a simple contacts database but I\'m having problems with users entering in duplicate data. I have implemented a simple data comparison but unfortunately the duplicate

11条回答
  •  隐瞒了意图╮
    2021-02-01 08:38

    You can compare the names with the Levenshtein distance. If the names are the same, the distance is 0, else it is given by the minimum number of operations needed to transform one string into the other.

提交回复
热议问题