MySQL Forums
Forum List  »  Newbie

Re: SUBSTR() Function
Posted by: Justin Keller
Date: November 30, 2006 05:20PM

Ok, yeah I figure it out, I was starting at index 0, starts at 1.

Is there a way in the query to check if the returned value of:

SUBSTRING(message, 1, 50)

Is indeed completely full, i.e. 50 characters, and if so, strip off the last 3 and replace with ...

Example:

'This is a test string that is returned from blah';

Becomes:

'This is a test string that is returned from b...';

Options: ReplyQuote


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