plsql - How do I display a field's hidden characters in the result of a query in Oracle? -
i have 2 rows have varchar column different according java .equals()
. can't change or debug java code that's running against particular database have access queries directly against database using sqldeveloper. fields same me (they street addresses 2 lines separated new line or carriage feed/new line combo).
is there way see of hidden characters result of query?i'd avoid having use ascii()
function substr()
on each of rows figure out hidden character different.
i'd accept query shows me character first difference between 2 fields.
try
select dump(column_name) table
more information in documentation.
as finding position character differs, might give idea:
create table tq84_compare ( id number, col varchar2(20) ); insert tq84_compare values (1, 'hello world'); insert tq84_compare values (2, 'hello' || chr(9) || 'world'); c ( select (select col tq84_compare id = 1) col1, (select col tq84_compare id = 2) col2 dual ), l ( select level l dual start 1=1 connect level < (select length(c.col1) c) ) select max(l.l) + 1position c,l substr(c.col1,1,l.l) = substr(c.col2,1,l.l);
Comments
Post a Comment