SQL




FOREIGN KEY - (REFERENCES), FOREIGN KEY, REFERENCES , :

CREATE TABLE Customers (cnum integer NOT NULL PRIMARY KEY, cname char(10), city char(10), snum integer REFERENCES Salespeople (snum));

Customers.snum , - Salespeople.snum. :

FOREIGN KEY (snum) REGERENCES Salespeople (snum)