I have a problem in selecting a data
Sample data
" test1 "
"test2 "
"test3"
How do i get the data using this query sample?
SELECT * FROM `data` Where data_name = "test2"
is there a way that it would work something like this. I know the code is wrong but is there a way it would work like this one?
SELECT * FROM `data` Where trim_spaces(data_name) = "test2"
i don't wan't to use this one because if there is a data_name = "test2 test" it will get it also.
SELECT * FROM `data` Where data_name like "%test2%"
trimthem before inserting.SELECT * FROMdata` Where data_name like "%test2%"` and it returns a data but when i use theSELECT * FROMdata` Where data_name = "test2"` orSELECT * FROMdata` Where TRIM(data_name) = "test2"` i didn't get anything