k**e 发帖数: 86 | 1 如果VARCHAR2中存有空字符(\0), SELECT时会不会被截断, 象C中的 CHAR* 一样? | n********a 发帖数: 68 | 2 no
SQL> select 'dsfs\0sdfd' from dual;
dsfs\0sdfd
【在 k**e 的大作中提到】 : 如果VARCHAR2中存有空字符(\0), SELECT时会不会被截断, 象C中的 CHAR* 一样?
| n**m 发帖数: 255 | 3 '\0' is a special char for c/c++, this is just two regular chars for SQL.
【在 n********a 的大作中提到】 : no : SQL> select 'dsfs\0sdfd' from dual; : dsfs\0sdfd
| k**e 发帖数: 86 | 4 抱歉, 其实我想问的不是这个意思, 而是一个unsigned char 的字符串, 如果其中有一个
字符是'\0', ORACLE会如何处理? 我现在已经改用RAW数据类型了.
【在 n**m 的大作中提到】 : '\0' is a special char for c/c++, this is just two regular chars for SQL.
|
|