General information
Category:
Database DAO/RDO/ODBC/ADO
How can i do that, i´m creating references with sql code.
I need to create references with "enforce referential integrity", "cascade update related fields" and "cascade delete related rows" programaticaly.
I'm using Delphi 4, how can i do it.
I'm using this.
ALTER TABLE Table1 ADD CONSTRAINT ConstraintName
FOREIGN KEY (key1) REFERENCES Table2
It creates the relationship between table1 and table2, but it's missing something to create cascade update and cascade delete.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only