■■请问oracle中的varchar与varchar2 的区别 ??
解决方案 »
- 关于ORACLE11G表DEFAULT属性使用的一个问题
- ORA-00911錯誤,哪裡錯了,看了SQL文
- 求树关系的sql语句 急切
- 两个不同数据库内,如何将从一个数据库内取出的整条数据直接出入到另一个数据库内结构相同的一张表中
- 能有什么可以替代比较多的IF……ESLE……
- oracle中如何创建自己的方案
- 在ORACLE中,如何切换数据库,请教高人指点。
- 表空间!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- 一个ORACLE菜鸟问题,但很急,望各位大虾相助
- 请问SQL Server的数据如何导入Oracle?
- 关于网络服务名
- length与lengthb有什么区别
只是varchar一般都不建议使用而已
------------ ------------ ------------
10 2 2
这样应该清楚了吧,char(包括nchar)是定长的,varchar,varchar2,nvarchar2都是可变长度的。
The VARCHAR datatype stores character strings of varying length. The first two bytes contain the length of the character string, and the remaining bytes contain the string. The specified length of the string in a bind or a define call must include the two length bytes, so the largest VARCHAR string that can be received or sent is 65533 bytes long, not 65535. For converting longer strings, use the LONG VARCHAR external datatype. VARCHAR2
The VARCHAR2 datatype is a variable-length string of characters with a maximum length of 4000 bytes.
其实 jlandzpa 贴出的解释说得最清楚了。