Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

nisc wwwxxx, wwwxxx0cm, should producers of software-based services, such as atms, be held liable for economic injuries suffered when their systems fail?, wwwxxx0cm, www.webdp.net, Event 9 IIS log failed to write entry, wwwxxx jeffs, Catastrophic failure Unexpected method call sequence. 0x8000ffff (-2147418113)., ksh lock a file, [unixODBC][Driver Manager]Driver's SQLAllocHandle on SQL_HANDLE_DBC failed

Links

XODOX
Impressum

#1: Parsing words

Posted on 2011-07-13 18:59:20 by ron.piggott

------=_NextPart_000_0000_01CC415C.AE16ACA0
Content-Type: text/plain;
charset="utf-8"
Content-Transfer-Encoding: quoted-printable


Hi Everyone.

Using the following query:


SELECT `topic` FROM `frequently_accessed_passages_of_scripture` WHERE =
`frequently_accessed_passages_of_scripture_theme_reference` =3D 1


I would like to parse all the words out of the column "topic" that are 4 =
characters long or more, in alphabetical order, separated by commas, =
removing all duplicate words. My desired output is:


$topic =3D "flower, garden, grass, plant";


Does mySQL have the capacity to do this? (If the query caused the =
result to be in an alias table so that is one word per line I could work =
with this adding the commas) Or do I need to do this within PHP? =20

Ron


The Verse of the Day
â€=9CEncouragement from Godâ€=99s Wordâ€=9D
http://www.TheVerseOfTheDay.info =20

------=_NextPart_000_0000_01CC415C.AE16ACA0--

Report this message