0

如何将字节存储在 Varchar2 中,并在它是 ASCII 时将其“正常”视为文本?(就像在查询中一样)。

如果不可能,限制在哪里?

我知道该列是用字符集定义的,所以如果它是 ANSI,例如,我不能把什么样的 1 字节值放在那里?对于 1 字节字符集,是否有比 ANSI“更好”的解决方案?

4

1 回答 1

-1

You have to encode bytes into text. You can use rawtohex function or utl_encode package. For displaying characters you have to use inverse function and then convert raw bytes to varchar2. Use utl_raw.cast_to_varchar2.

于 2013-01-22T08:00:27.950 回答