rtrim/ltrim [message #460097] |
Wed, 09 June 2010 10:49  |
salama
Messages: 36 Registered: January 2006
|
Member |
|
|
Gentlemen,
I have a ltrim/rtrim function question, I have a field in my table called safetyreportid, it is a varchar2(100char)
when i write the following function:
instr(safetyreportid,chr(10)) >0 I notice in toad that there are three safetyreportid's that have carriage returns at the end. How can i remove these without losing any records. I am assuming I need to use rtrim. However when i use rtrim, I lose a few records in the table. Here are a few things that I have tried
rtrim(SAFETYREPORTID, ' ' || chr(10))
rtrim(SAFETYREPORTID)
Appreciate any tips. Thanks
|
|
|
|
|
|
Re: rtrim/ltrim [message #460137 is a reply to message #460100] |
Wed, 09 June 2010 16:10  |
 |
Littlefoot
Messages: 21826 Registered: June 2005 Location: Croatia, Europe
|
Senior Member Account Moderator |
|
|
Quote:However when i use rtrim, I lose a few records in the table
Did you check behind the monitor?
|
|
|