Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2004
    Posts
    1

    Unanswered: DB2 escape characteres

    Hi,

    I am new to DB2 and I'd like to know how to represent escape characteres in DB2 queries, such as new line ('\n'), for example.

    Thanks in advance,

    Louise

  2. #2
    Join Date
    Feb 2004
    Posts
    9

    DB2 Escape characters

    Can you explain why do you need this?

  3. #3
    Join Date
    Nov 2009
    Posts
    10
    I need something like this. I must create a positional export file and i need to remove all new line chars in all text fields.
    I think to use the REPLACE function but i would like to know how to rappresent the new line char.

    Something like this?
    Code:
    REPLACE(textfiel, '\n',' ');
    Thank you.

  4. #4
    Join Date
    Jun 2003
    Location
    Toronto, Canada
    Posts
    5,516
    Provided Answers: 1
    Try CHR(10).
    ---
    "It does not work" is not a valid problem statement.

Posting Permissions

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