May 16, 2005 #1 rmutyapu IS-IT--Management Joined Nov 2, 2001 Messages 24 Location US I am new to this LTRIM and RTRIM usage in Informix. I would like to know the usage of LTRIM and RTRIM in informix 9.4 Thanks for your help.
I am new to this LTRIM and RTRIM usage in Informix. I would like to know the usage of LTRIM and RTRIM in informix 9.4 Thanks for your help.
May 16, 2005 #2 nilin Programmer Joined Aug 14, 2003 Messages 26 It will remove the blank spaces from left / right sides of the selected field, hope so..try Upvote 0 Downvote
May 19, 2005 #3 mberni IS-IT--Management Joined Jul 25, 2001 Messages 197 Location DE There is no command LTRIM or RTRIM in Informix 9.4 The correct syntax is : TRIM(TRAILING " " from somevar) or just TRIM(somevar) -> RTRIM TRIM(LEADING " " from somevar) -> LTRIM instead of " " you can remove any other char TRIM(LEADING "#" from somevar) would return "123" if somevar was "###123" Upvote 0 Downvote
There is no command LTRIM or RTRIM in Informix 9.4 The correct syntax is : TRIM(TRAILING " " from somevar) or just TRIM(somevar) -> RTRIM TRIM(LEADING " " from somevar) -> LTRIM instead of " " you can remove any other char TRIM(LEADING "#" from somevar) would return "123" if somevar was "###123"