ISQLGenerator.GenerateCreateUniqueKey Method
Generates the DDL statement that adds a unique constraint to a table.
Syntax
Unit: Aurelius.Sql.Interfaces
function ISQLGenerator.GenerateCreateUniqueKey(UniqueKey: TUniqueKeyMetadata): string; virtual; abstract;
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| UniqueKey | TUniqueKeyMetadata | The metadata describing the unique key to create. |
Returns
The ALTER TABLE ... ADD CONSTRAINT ... UNIQUE statement as a SQL string.