As I understand if you declare a column as varchar(15)
or varchar(200)
, it makes no difference in memory size. If you store a 4-character string it should only use around 4 bytes. This is the same in Oracle for varchar2. But, for Oracle, their performance are different as the bigger size you set, the more overhead will be used.
Is it the same in MySQL (or any other database)?