Skip navigation links

MySQL Forums :: Newbie :: SUBSTR() Function


Advanced Search

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 Justin Keller 11/22/2006 06:02PM
Re: SUBSTR() Function Bob Field 11/23/2006 12:51AM
Re: SUBSTR() Function Justin Keller 11/30/2006 05:20PM
Re: SUBSTR() Function Bob Field 11/30/2006 06:23PM
Re: SUBSTR() Function Justin Keller 11/30/2006 06:38PM
Re: SUBSTR() Function Bob Field 11/30/2006 06:48PM
Re: SUBSTR() Function Justin Keller 11/30/2006 06:57PM
Re: SUBSTR() Function Justin Keller 11/30/2006 07:03PM
Re: SUBSTR() Function Bob Field 11/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.