View Single Post
  #11 (permalink)  
Old 08-23-2007, 11:33 PM
Murali Murali is offline
D-Web Master
 
Join Date: Feb 2007
Location: India-Chennai.
Posts: 386
Murali is on a distinguished road
Send a message via AIM to Murali
Default Re: Difference between Oracle 9i and 10g

Exception and Error Handling Enhancements

In Oracle9i

Code:
CREATE TABLE TEST(TEST_ID INTEGER PRIMARY KEY,TEST_DESC VARCHAR2(5));
INSERT INTO TEST VALUES ( 1,'May be this time is the correct one !' );
Output Error Message:

Code:
ORA-01401: inserted value too large for column.
In Oracle-10g

Code:
CREATE TABLE TEST(TEST_ID INTEGER PRIMARY KEY,TEST_DESC VARCHAR2(5));
INSERT INTO TEST VALUES ( 1,'May be this time is the correct one !' );
Output Error Message:

Code:
ORA-12899: value too large for column "TEST"."TEST"."TEST_DESC" (actual: 37, maximum: 5).
And still many more......
__________________
-Murali..
Reply With Quote