MySQL database interview questions

MySQL database

Problem Description The difference between varchar and char the MySQL database;
meaning (50) 50 on behalf of the varchar.
answer: varchar is a variable length string; maximum storage space is - 65535 bytes; relatively slow query;
char fixed-length string; maximum storage space is - 255 bytes; relatively fast query;
varchar (50 ) in 50 : in MySQL4.0 represents the maximum stored in 50 bytes; in MySQL5.0 represents the maximum storage 50 characters;

Guess you like

Origin www.cnblogs.com/kldn208/p/11458088.html