SELECT trim(regexp_replace(col_name, '\s+', ' ', 'g')) as col_name FROM table_name;
या अपडेट के मामले में:
UPDATE table_name SET col_name = trim(regexp_replace(col_name, '\s+', ' ', 'g'));
SELECT trim(regexp_replace(col_name, '\s+', ' ', 'g')) as col_name FROM table_name;
या अपडेट के मामले में:
UPDATE table_name SET col_name = trim(regexp_replace(col_name, '\s+', ' ', 'g'));