Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Skip data with column length greater than 255 during INSERT

746243Feb 3 2011 — edited Feb 3 2011
Hello,

I have recently created a new table with a maximum column length of 255. I am attempting to insert data from an existing table into this new table but receive and ORA-12899 value too large for column error. Here is the syntax of my INSERT / table loading command:

INSERT INTO NEW_TABLE
SELECT * FROM OLD_TABLE
WHERE LENGTH(RESPONSE) <=255
ORDER BY REVERSE(NAME)
COMMIT;

I was under the impression that this SQL would only insert rows from the OLD_TABLE that were <= 255.

Any assistance would be greatly appreciated.

Thanks!

Scott
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 3 2011
Added on Feb 3 2011
8 comments
1,961 views