Compare strings ignore null characters in mysql

by Jayanthi 2012-06-27 12:30:46

Compare strings ignore null characters in mysql

You have stored name is "sundar ji". In case names are same like "sundarji" and "sundar ji". Use mysql aggregate function "REPLACE"


SELECT * FROM customer WHERE REPLACE( name, ' ', '' ) = 'sundarji'

Tagged in:

867
like
0
dislike
0
mail
flag

You must LOGIN to add comments