Remove duplicate words from field in mysql

后端 未结 6 523
囚心锁ツ
囚心锁ツ 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

    IMO, you're best to handle this with PHP

    $uniqueTags = array_unique(explode(' ', $tagsFromDbColumn));
    

提交回复
热议问题