Home > Backend Development > PHP Tutorial > MySQL相似度数据查询和删除

MySQL相似度数据查询和删除

WBOY
Release: 2016-06-06 20:22:11
Original
1899 people have browsed it

表里相似数据太多,想删除相似度高的数据,有什么办法能实现吗?
例如:银屑病怎么治?银屑病怎么治疗?银屑病怎么治疗好?银屑病怎么能治疗好?等等。。

回复内容:

表里相似数据太多,想删除相似度高的数据,有什么办法能实现吗?
例如:银屑病怎么治?银屑病怎么治疗?银屑病怎么治疗好?银屑病怎么能治疗好?等等。。

<code>delete from tableName where title REGEXP '银屑病';
--这会删除所有title包含`key`的数据,注意使用安全</code>
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template