TI Logbook
Java, Angular, Eclipse, PostgreSQL, SQL, Tips....
Tuesday, February 9, 2016
PostrSQL TRIM- Remove blanks
Use TRIM function for (clear white spaces) remove leading and trailing blanks from column of every row in a table
Example
UPDATE table SET column =
TRIM(
column
)
;
Or
UPDATE table SET column =
TRIM(
both ' " " ' from
column
)
;
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment