Wednesday, May 18, 2016

How to remove unwanted string inside database column

Tags


Ever wonder how to remove unwanted string in database column? It's easy! 

For example, you have created a "map" table with column "location" and you want to delete the comma.



To delete the comma, you can use the query below:




The query should look something like this. (Lets said the database that we used called "country")

UPDATE country.map set location =  replace( location , ',' , ' ');

After execute the query, the comma should disappear.





3 comments


EmoticonEmoticon