Jump to content

char vs varchar


eMonk

Recommended Posts

My book recommends using char over varchar because it will keep the database smaller and it's faster to phrase. So why is everyone using varchar?

They're stored differently and CHAR can only hold up to 30 characters.  Read more here:

http://dev.mysql.com/doc/refman/5.0/en/char.html

Link to comment
https://forums.phpfreaks.com/topic/234690-char-vs-varchar/#findComment-1206050
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.