MySQL Forums
Forum List  »  Newbie

SUBSTR() Function
Posted by: Justin Keller
Date: November 22, 2006 06:02PM

Ok, this honestly shouldnt be hard but I am pulling my hair out, currently I have:

SELECT SUBSTR(message, 0, 20) FROM posts

My goal is to start at the first characters on the far left, and then return 20 chars only. This function for some crazy reason seems to start at the end of the string though, which is stupid, because how do I know where the string starts?

Options: ReplyQuote


Subject
Written By
Posted
SUBSTR() Function
November 22, 2006 06:02PM
November 23, 2006 12:51AM
November 30, 2006 05:20PM
November 30, 2006 06:23PM
November 30, 2006 06:38PM
November 30, 2006 06:48PM
November 30, 2006 06:57PM
November 30, 2006 07:03PM
November 30, 2006 07:18PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.