ISQLGenerator.GenerateCreateForeignKey Method
Generates the DDL statement that adds a foreign key constraint to an existing table.
Syntax
Unit: Aurelius.Sql.Interfaces
function ISQLGenerator.GenerateCreateForeignKey(ForeignKey: TForeignKeyMetadata): string; virtual; abstract;
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| ForeignKey | TForeignKeyMetadata | The metadata describing the foreign key to create. |
Returns
The ALTER TABLE ... ADD CONSTRAINT ... FOREIGN KEY statement as a SQL string.