I am trying to configure the CLIENTS table on my database such that if an employee is deleted from the EMP table any associated clients are automatically deleted from the CLIENTS table.
This is what I've tried so far.
ALTER TABLE clients
MODIFY empno REFERENCES emp(empno) ON DELETE CASCADE
Unfortunately this returns a near "MODIFY": syntax error every time I try to run it. Any idea what is going wrong?
Thanks in advance.