MySQL Forums
Forum List  »  Newbie

Re: How to replace LF/CR in a SELECT statement
Posted by: Felix Geerinckx
Date: June 16, 2005 05:54AM

to-work wrote:

>
> In SQLServer (sorry!) I would do it like this:
>
> SELECT REPLACE( suggestion_text, (chr(10)+chr(13)), "<br/><br/>") ...

SELECT REPLACE(suggestion_text, CHAR(10, 13), "<br/><br/>") ...

(the CHAR function is described here: http://dev.mysql.com/doc/mysql/en/string-functions.html)

--
felix
Please use BBCode to format your messages in this forum.

Options: ReplyQuote


Subject
Written By
Posted
Re: How to replace LF/CR in a SELECT statement
June 16, 2005 05:54AM


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.