For example in my form address field is there. It will stored in newlines in a database(If i click enter and add text in address field). Now i would like search with full address search.Results will not getting.here my query is like this
select * from contacts where address like '69 TEXT STREET,4th Floor boston 2TN'
I saw some posts in stackoverflow. what i used for replacing newlines in a column is
REPLACE(REPLACE(address, '\r', ''), '\n', '')
if i used like this in my query data is not retrieved
select * from contacts where REPLACE(REPLACE(address, '\r', ''), '\n', '') like '69 TEXT STREET,4th Floor boston 2TN'
I need exact search results.Thanks in advance