>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

Sir, take Substring() out of the FROM clause and put it in the SELECT clause.

Bob Hall

Know thyself? Absurd direction!
Bubbles bear no introspection.     -Khushhal Khan Khatak

---------------------------------------------------------------------
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 <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to