Like in Oracle VARCHAR( 60 CHAR ) I would like to specify a varchar field with a variable length depending on the characters inserted.
eg:
create table X (text varchar(3)) insert into X (text) VALUES ('Àâü')
It should be possible (with UTF8 as the default encoding of the database).
In DB2, I got this error: DB2 SQL Error: SQLCODE=-302, SQLSTATE=22001 (Character data, correct truncation occurred, for example, the update or insert value is a row that is too long for the column, or the datetime value cannot be assigned host variable because it is too small.)
I am looking for solutions for DB2, MsSql, MySql, Hypersonic.
user196692
source share