In an Oracle database, I have a table with a field defined as varchar(2), in which I must enter a code (key of the table), but when entering the code 'LÑ' it returns an error, I have used Ñ in another field in the same table.
The table only has these two fields (In the DESCRIPTION field, if I can enter Ñ):
"PROFESSIONID" VARCHAR2(2),
"DESCRIPTION" VARCHAR2(200),
I do the insertion with this code
INSERT INTO ESQUEMA.TABLA (PROFESSIONID,DESCRIPTION) VALUES ('LÑ','ESTA ES LA DESCRIPCION');
The error it returns is the following.
SQL Error [12899] [72000]: ORA-12899: el valor es demasiado grande para la columna "ESQUEMA"."TABLA"."PROFESSIONID" (real: 3, máximo: 2)
How can I solve that? And why does this error occur?