View Full Version : Enum or TinyInt

08-17-2011, 04:45 PM

When you create a user table with a column indicating whether the user is active or inactive or perhaps a payment table with the various payment status viz. "Payment received", "Payment pending", "payment cancelled"

what datatype do you prefer for the status column, do you keep it ENUM so that you can store the status as strings or do you keep the datatype as tinyint/int and store numbers representing each number as a status?


08-17-2011, 07:36 PM
Asked and answered elsewhere.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum