Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE » How To » Enum MySQL datatype
Re: Enum MySQL datatype [message #30 is a reply to message #29] Thu, 11 May 2006 07:57 Go to previous messageGo to previous message
johandewit is currently offline  johandewit
Messages: 25
Registered: May 2006
Location: Belgium
Junior Member
I didn't explain it too well I guess.
And it seems this is what you rty to make clear to me:

I have a table users and a table status.

Every user has at least one status. This could be eg

transfered to other site
retired
resigned
fired
working

This states have certain actions bound to them.

active
non-active

An active user has a different processing than non-active.
It is in the status table we have the enum field for action.

In this case we only have enum('active','non-active')
Since we need to write a different piece of code for each action, the use of the enum type in this case seems appropriate.





 
Read Message
Read Message
Read Message
Read Message
Next Topic: //DebugBreak();
Goto Forum:
  


Current Time: Sun Dec 01 00:59:37 EST 2024

Total time taken to generate the page: 0.00994 seconds