I have a great doubt, I'm new in Vertica & I'm trying to insert the string (hóla) but I got the next error in dbvisualizer:
My scenario in dbvisualizer
create table db_sieventas.test (
word varchar (4));
insert into db_sieventas.test values ('hóla');
[Code: 8682, SQL State: 22001] [Vertica]VJDBC ERROR: String of 5 octets is too long for type varchar(4) for column word
I take the lenght:
select octet_length('¿hóla'); = 5
==============================================
The same scenaerio in Vsql
In Vsql it'scompletly different here the result
uvtc840079=> select octet_length('hóla');
octet_length
4
(1 row)
uvtc840079=> insert into db_sieventas.test values ('hóla');
OUTPUT
1
(1 row)
In Vsql I could insert the row I'm confused, Can you help me?