sql - Trim trailing spaces with PostgreSQL - Stack Overflow
https://stackoverflow.com/questions/22699535/trim-trailing-spaces-with-postgresql
Mar 27, 2014 · To remove all leading white space (but not white space inside the string): regexp_replace(eventdate, '^\s+', '') ^.. start of string. Both. To remove both, you can chain above function calls: regexp_replace(regexp_replace(eventdate, '^\s+', ''), '\s+$', '') Or you can combine both in a single call with two branches. Reviews: 3
Reviews: 3
DA: 2 PA: 39 MOZ Rank: 28