mysql trim new line select query

by Francis 2014-06-27 10:07:32

mysql trim new line select query
select * from tablename where TRIM(BOTH '\r' from (TRIM(BOTH '\n' from filedname))) = '$value' 
Here the for new line and for Carriage Return to trim in the field value before condition prove.
1036
like
0
dislike
0
mail
flag

You must LOGIN to add comments