Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to handle an invisible character in a string?

769590Jun 9 2010 — edited Jun 10 2010
Hi,
I have an interesting situation-

select bac_person_id, length(bac_person_id) from bkmap_personid_stg where BAC_PERSON_ID like '%27136317%'

The result is -

BAC_PERSON_ID|LENGTH(BAC_PERSON_ID)
27136317| 9

I don't know what is the invisible character here?

It is certainly not a blank character as trim is not working -

select * from bkmap_personid_stg where trim(BAC_PERSON_ID) = '27136317'

no records!!

But substr does give me the resullt -

select * from bkmap_personid_stg where substr(BAC_PERSON_ID,1,8) = '27136317'

How can I know which is the last character? and How to handle it?
This post has been answered by Nimish Garg on Jun 10 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 8 2010
Added on Jun 9 2010
7 comments
8,047 views