2012-10-30 25 views
-3

我正在使用oracle数据库。我有一些基本的疑问,我创建了一个表 注释VARCHAR2(2000字节)。如果我试图插入一个有2500字节的值 会发生什么?是否当我的数据大小超过我的表列大小时会发生什么?

1. It will throw an exception(please give me exception details). 
2. It will truncate the 500 bytes data. and insert only first 2000 bytes. 
3. Internally it will increases it size and insert entire data. 

请指导我。

+0

你试过了吗?您可以很快在SQL * Plus中进行测试。 –

+0

或者使用SQL小提琴:http://sqlfiddle.com/ –

+0

http://sqlfiddle.com/#!4/49aae/1 –

回答

1
  1. ORA-12899:列值太大。
+0

非常感谢Hart。 – Mohan

相关问题