English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

i have a field that shall accept one of the ten numbers (1-10) as its input, i don't wanna use enum. how do i restrict input within the range?

2007-02-04 04:19:19 · 1 answers · asked by Scottsman 3 in Computers & Internet Programming & Design

1 answers

1. Do it at the application level.
2. Use 0-9 instead and then you can do TINYINT(1) UNSIGNED
3. Use SET instead of ENUM.

2007-02-04 05:00:39 · answer #1 · answered by Vegan 7 · 0 0

fedest.com, questions and answers