Question about size
#1

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?
Reply
#2

Right, that is corret

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


Forum Jump:


Users browsing this thread: 1 Guest(s)