Table of Contents

ISQLGenerator.GenerateDropForeignKey Method

Generates the DDL statement that removes a foreign key constraint from a table.

Syntax

Unit: Aurelius.Sql.Interfaces

function ISQLGenerator.GenerateDropForeignKey(ForeignKey: TForeignKeyMetadata): string; virtual; abstract;

Parameters

<-> Parameter Type Description
ForeignKey TForeignKeyMetadata The metadata describing the foreign key to drop.

Returns

The ALTER TABLE ... DROP CONSTRAINT statement as a SQL string.

See also