Wednesday, October 3rd, 2012

Char or Varchar

When you are defining the fields for your database tables you will have a lot of fields that contain text. In this article we look at the difference between defining those fields as char or varchar and the situations where one may be better than the other. Of course you may be using a database where the optimiser will automatically switch the type if you specify the less efficient one for you in which case you may not need this information to be able to make the choice but it will still be useful in letting you know how each actually works.

Char or Varchar

Tags: , , ,

Comments are closed.