Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2004
    Posts
    74

    Unanswered: How to remove carriage returns from the end of a selected field using Oracle SQL

    Hi,

    I am selecting a varchar field from a table and I need to remove the carriage returns from the end of that field in the generated output. Right now in my output I have some rows with 10+ carriage returns at the end.

    Any suggestions?

    Thanks

  2. #2
    Join Date
    Nov 2003
    Posts
    2,935
    Provided Answers: 12
    You can use the trim function (Note that you can specify the character that should be trimmed)

    As an alternative you can use replace or regexp_replace

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •