954,561 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

About ENUM

Hi all...........

I shud just how to use ENUM type in mysql..like shud i give any field in form in a website and how to assign a values for eg 0 for admin,1 for manager and 2 for the staff using phpmyadmin??

please help me.................

danielbala
Light Poster
40 posts since Jan 2012
Reputation Points: 10
Solved Threads: 0
 

Use an enum field with literal values. Define it as
myField enum('admin','manager','staff')
instead of numerical values.

smantscheff
Nearly a Posting Virtuoso
1,233 posts since Oct 2010
Reputation Points: 300
Solved Threads: 254
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You