I have table Like This
ID | Propinsi | Kota |
_________________________
1 | Aceh | Denpasar
2 | Aceh | Banda Aceh
3 | Sumatera | Asahan
This table have many rows
The Problem is I want Replace the Space berfore text on column Kota for All ROw like this
ID | Propinsi | Kota |
_________________________
1 | Aceh |Denpasar
2 | Aceh |Banda Aceh
3 | Sumatera |Asahan
I search on Googel the function replace on mysql only effect to one rows
SELECT REPLACE(string_column, 'search', 'replace') as Kota
can Someone fix my problem?
Iam Very Appreciated your answer.
Thanks
LTRIM
to remove all leading whitespaces: java2s.com/Code/PostgreSQL/String-Functions/ltrimname.htm – cptPH Dec 3 '13 at 10:18