為何選擇 ENUM

ENUM 提供了一種為行提供屬性的方法。具有少量非數字選項的屬性效果最佳。例子:

reply ENUM('yes', 'no')
gender ENUM('male', 'female', 'other', 'decline-to-state')

值是字串:

INSERT ... VALUES ('yes', 'female')
SELECT ... --> yes female