What is the best way to store a string of up to 300 characters?

Line length from 255 to 300 characters, as the most compact to store them? Referring to the data type of the field.
September 19th 19 at 12:54
3 answers
September 19th 19 at 12:56
Solution
Varchar 300, obviously :) Even better than 330, just in case.
— "everyone" :D - Marian23 commented on September 19th 19 at 12:59
September 19th 19 at 12:58
Solution
varchar(300)
Takes as much space as the recorded data, plus an overhead of 2 bytes for storing the length of the string.
September 19th 19 at 13:00

Find more questions by tags MySQL