How can I truncate a VARCHAR to the table field length AUTOMATICALLY in Derby using SQL?
To be specific:
CREATE TABLE A ( B VARCHAR(2) );
INSERT INTO A B VALUES ('1234');
would throw a SQLException:
A truncation error was encountered trying to shrink VARCHAR '123' to length 2.
Is there a easy way to suppress this exception?