PDA

View Full Version : Question about size


Brooks1
20/03/2019, 10:38 PM
Hello!
I want to ask if I have string with contains 3 characters, the length in Pawn needs to be 3 + 1 (+1 for the null terminator), but if I save this string in MySQL does it need my field in the database to be VARCHAR(3 + 1) or VARCHAR(3) is enough, because MySQL doesn't have null terminator unlike Pawn?

Kaliber
21/03/2019, 08:28 AM
Right, that is corret :)

https://dev.mysql.com/doc/refman/8.0/en/char.html