VK
asked on
how to set default trim for trailing spaces on strings/characters in POSTGRESSQL
How to set default trim for trailing spaces on strings/characters data in PostgresSQL
if you have string 'abc ' it should 'abc'. don't want to apply any trim functions manually on each query, Please advise.
if you have string 'abc ' it should 'abc'. don't want to apply any trim functions manually on each query, Please advise.
ASKER
Hi,
Yes, I don't want to use any trim function or any additional code, even though you have trailing spaces in the strings, these trailing spaces should trim automatically when saving in the database. I mean, if query database without spaces i should get my results back even my my input data has spaces(trailing).
In Netezza Postgres you have this feature, you can check online. It is really strange no one tried to respond after so long time.
Thanks for asking.
Yes, I don't want to use any trim function or any additional code, even though you have trailing spaces in the strings, these trailing spaces should trim automatically when saving in the database. I mean, if query database without spaces i should get my results back even my my input data has spaces(trailing).
In Netezza Postgres you have this feature, you can check online. It is really strange no one tried to respond after so long time.
Thanks for asking.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIALMembers can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Or are you just trying to trim all strings automatically each query?