busboy — 2012-03-27T20:43:21-04:00 — #1
I am creating an RSS feed and I need to limit what is shown in the <description> tag to about 50 words. What is the best way to do this when pulling data from a column?
select date, testimony from testimonies where ???
r937 — 2012-03-27T21:05:44-04:00 — #2
i wouldn't bother trying to do this with sql, not unless the text that you want the 50 words of is many, many thousands of bytes long
just pull the row you want and extract the 50 words when you build the feed data