Can mysql extract two fields to combine?
伊谢尔伦
伊谢尔伦 2017-05-16 13:05:40
0
2
465

It is necessary to extract the contents of two fields in mysql, one is the keyword, and the other is the link corresponding to the keyword
Is there any way to extract and combine them?
Duplication also needs to be removed, because the keywords in mysql are duplicated with the corresponding links

< /p>

Achieve the following effects

<a href="Link corresponding to the keyword">Keyword</>
伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(2)
淡淡烟草味

You need to use mysql's concat function and deduplication function distinct. Refer to the sql statement below!

select distinct concat('<a href="',`description`,'">',`title`,'</a>') as rs from `xxx`
为情所困

Direct

SELECT DISTINCT `title`, `description` FROM `xxx`

That’s it

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template