How do I display a field's hidden characters in the result of a query in Oracle?

Posted by Chris Williams on Stack Overflow See other posts from Stack Overflow or by Chris Williams
Published on 2011-02-23T15:09:07Z Indexed on 2011/02/23 15:24 UTC
Read the original article Hit count: 257

Filed under:
|

I have two rows that have a varchar column that are different according to a Java .equals(). I can't easily change or debug the Java code that's running against this particular database but I do have access to do queries directly against the database using SQLDeveloper. The fields look the same to me (they are street addresses with two lines separated by some new line or carriage feed/new line combo).

Is there a way to see all of the hidden characters as the result of a query?I'd like to avoid having to use the ascii() function with substr() on each of the rows to figure out which hidden character is different.

I'd also accept some query that shows me which character is the first difference between the two fields.

© Stack Overflow or respective owner

Related posts about Oracle

Related posts about plsql