MySQL Forums
Forum List  »  Newbie

Re: SUBSTR() Function
Posted by: Bob Field
Date: November 23, 2006 12:51AM

The second parameter of the substr function is the number of the character position to start at. To return the leftmost 20 characters, use SUBSTR(message,1,20). There is also a LEFT function, e.g. LEFT(message,20).

Options: ReplyQuote

Written By
November 22, 2006 06:02PM
Re: SUBSTR() Function
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.