D
Dave
How can I create foreign keys in SQL CE database?
And why this SQL generates error?
ALTER TABLE company_contacts ADD
CONSTRAINT FK_company_contacts_companies FOREIGN KEY
(
company_id
) REFERENCES companies (
id
) ON DELETE CASCADE
And why this SQL generates error?
ALTER TABLE company_contacts ADD
CONSTRAINT FK_company_contacts_companies FOREIGN KEY
(
company_id
) REFERENCES companies (
id
) ON DELETE CASCADE