How to handle an invisible character in a string?
769590Jun 9 2010 — edited Jun 10 2010Hi,
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?