Data truncation: Data too long for column 'codpre' at row 1 How can I fix it

0

Well as it says in the title it gives me that error when inserting data in my java database. It only gives me failure that is a varchar of 5 I put 5 and it does not work I put it less for example 4 and if it works for me, but I need it to work getting it 5 I tried to change to varchar 10 and it happens the same and then I set it to varchar 5 and always the same does not leave me 5 just just less, what can I do?

I put values in it as if it were a code ckr01 if it is this way 5 rejects it if it is 4 it accepts it

    
asked by Ángel 01.06.2017 в 22:54
source

0 answers