[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
substring and a join?
Hello,
I have the following query:
"SELECT thara_plane.id,thara_plane.nam
e,thara_plane.nick,thara_plane.bodytext,thara_category.category "
."FROM thara_plane,thara_category,substring(thara_plane.bodytext,225) as
bodytext "
."WHERE ((thara_plane.category = thara_category.id)) "
."ORDER BY thara_plane.time_last DESC";
I need to select the first 255 chars from the field "thara_plane.bodytext". The
previous query, however, doesn't work. I have tried it several ways, changine
one row and another but I haven't yet found a solution that works. Any ideas?
Yours,
Lauri
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <mysql-thread67305@xxxxxxxxxxxxxxx>
To unsubscribe, e-mail <mysql-unsubscribe-treed=ultraviolet.org@xxxxxxxxxxxxxxx>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
This mailing list archive is a service of Copilot Consulting.