MySQL Forums
Forum List  »  Newbie

Re: extra line and carraiage return \r\n\r\n added to data
Posted by: Ramalingam Chelliah
Date: September 13, 2004 01:15AM

Hi,
Try using TRIM( ) function....

Refer:

http://dev.mysql.com/doc/mysql/en/String_functions.html


mysql> SELECT
TRIM( TRAILING '\r\n' FROM 'hello\r\n\r\n\r\n') as Result ;

+--------+
| Result |
+--------+
| hello |
+--------+
1 row in set (0.00 sec)

Hope this helps ....

Regards,
Ram.


We Learn the Most When we have to Invent

Options: ReplyQuote


Subject
Written By
Posted
Re: extra line and carraiage return \r\n\r\n added to data
September 13, 2004 01:15AM


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.