Thanks for reading this.
I have tables like this in MySQL
:
Device
table has a list of name. And ReservedName
table has a list of "reserved" name list.
As you may see, my design concept is to make Name
value of Device
table SHOULD NOT one of Name
in ReservedName
.
I could easily implement this relation by add a few SQL statement when I do INSERT operation to Device
table. But I am wondering if there is something like "Not one of" constraint in the table schema? Maybe opposite meaning of FOREIGN KEY? It is also welcome if there is any other way to make that relationship.