As a programmer, there are no real problems but challenges...ones that we need to overcome. This means that there is a solution for all challenges that one may face. For all the challenges that I have faced, I will share them and their solutions.
Wednesday, June 10, 2009
how to replace extra space in a database/sql column
use the replace function:
update table_name set column_name = replace(column_name, ' ', ' ');
the function takes the column name and replaces two occurrences of spaes with one;
No comments:
Post a Comment