Gossamer Forum
Home : General : Databases and SQL :

Restricting values according to another table

Quote Reply
Restricting values according to another table
Hello.

I was wondering if it is possible in MySQL to restrict the values you can enter into a field, according to the contents of another table. I know you can use ENUM('value', 'value', 'value') to do this normally, but I would like to make it look at the values in a column in a different table to determine what those acceptable values are. Is this possible?

Thanks in advance,
--
Dave.
Subject Author Views Date
Thread Restricting values according to another table gingercardwell 5861 Dec 27, 2002, 4:24 PM
Thread Re: [gingercardwell] Restricting values according to another table
Stealth 5730 Jan 1, 2003, 8:41 PM
Thread Re: [Stealth] Restricting values according to another table
webmaster33 5712 Jan 1, 2003, 11:41 PM
Post Re: [webmaster33] Restricting values according to another table
Stealth 5631 Jan 2, 2003, 9:37 AM