phpmyadmin - SQL: set the possible values of a field to the contents of another field -


so need set possible values field dev_id contents of table containing computer hostnames.

any ideas?

i think referring foreign key constraint. type of constraint that checks value in field (such dev_id) in 1 table valid key in table (such table of computer hostnames).

typically, set in first table when create it, using syntax such as:

constraint foreign key (dev_id) references hostnames(devid) 

(this mysql syntax.)


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -