Remove duplicate words from field in mysql

后端 未结 6 511
囚心锁ツ
囚心锁ツ 2021-01-21 03:02

I am wondering if it is possible to remove duplicate text using a mysql query from one field, or if a problem like this would be better solved using PHP.

I have a databa

6条回答
  •  迷失自我
    2021-01-21 03:24

    +1 redesign, but if redesign is not an option now...

    How many distinct tags are there? You might be able to do this using CASE and substring functions.

    http://dev.mysql.com/doc/refman/5.0/en/case-statement.html

提交回复
热议问题