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 read concatenated ASCII Code in Oracle Table column

SQLE KumarMar 9 2024 — edited Mar 9 2024

Hi All,

  1. We have a data in excel which is to be loaded in our Oracle table.
  2. Data has special characters example @, + , - , line break
  3. As per our database rules except .,comma & single quote everything else is restricted and gets converted to pipe |
  4. to bypass this restriction we converted all special charaters to there ASCII code example @ get converted to chr(64) , + to chr(43)
  5. example email - cs@abc.com gets converted to ‘cs’||chr(64)||'abc.com'
  6. we anticipated that when we read the data chr(64) would be converted to @
  7. example select ‘cs’||chr(64)||'abc.com' from dual gives cs@abc.com
  8. But, since this data ‘cs’||chr(64)||'abc.com' was loaded into c_dtls colums of table Company it is displayed as same
  9. select c_dtls from company gives ‘cs’||chr(64)||'abc.com'
  10. Example data attached

Kindly help why point 7 and 9 has different output and how can i solve the same

special character issue.xlsx

This post has been answered by Barbara Boehmer on Mar 11 2024
Jump to Answer
Comments
Post Details
Added on Mar 9 2024
26 comments
5,102 views