List:General Discussion« Previous MessageNext Message »
From:Ravi Raman Date:March 20 2001 5:22pm
Subject:RE: Second Request - Limit Filed Input
View as plain text  
Hi.

You can use an ENUM column type assuming the numerical range is less than
65535 numbers.

http://www.mysql.com/doc/E/N/ENUM.html

-ravi.

-----Original Message-----
From: dboothe@stripped [mailto:dboothe@stripped]
Sent: Tuesday, March 20, 2001 11:05 AM
To: mysql@stripped
Subject: Second Request - Limit Filed Input


Is there a way in MySQL to limit the values that a (numeric) field can hold.
For example if I want a given field to only have the values 1 - 10 can I do
this and can it be done in the definition of the field when the table is
created?

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <mysql-thread68856@stripped>
To unsubscribe, e-mail <mysql-unsubscribe-ravi=webdream.com@stripped>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php


Thread
Second Request - Limit Filed Inputdboothe20 Mar
  • RE: Second Request - Limit Filed InputRavi Raman20 Mar
    • RE: Second Request - Limit Filed InputBill Marrs20 Mar
      • RE: Second Request - Limit Filed InputRavi Raman20 Mar
        • RE: Second Request - Limit Filed InputBill Marrs20 Mar
  • RE: Second Request - Limit Filed InputCal Evans20 Mar
RE: Second Request - Limit Filed InputShankar Unni21 Mar
  • RE: Second Request - Limit Filed InputSinisa Milivojevic22 Mar