skip to main
|
skip to sidebar
Code Samples
6.22.2006
Short String Summary with MYSQL
I got this snippet from a friend...thanks Andrew!
SELECT CONCAT(SUBSTRING(content,1,300),'...') FROM foo
The above snippets selects the first 300 characters(1-300) from the foo.content column, and then appends '...' to it.
Handy!
Older Posts
Home
Subscribe to:
Posts (Atom)
Blog Archive
▼
2006
(5)
▼
June
(3)
Short String Summary with MYSQL
CGI Cookies
Villager Class
►
May
(1)
►
January
(1)
►
2005
(3)
►
December
(3)
Links
Back to Sock Soup