...

View Full Version : Enum or TinyInt



phantom007
08-17-2011, 05:45 PM
Hi

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?


Thanks

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum