MSSQL.add_primary_key¶
- MSSQL.add_primary_key(column_name, table_name, schema_name=None)[source]¶
Add a primary key constraint to a table.
- Parameters:
column_name (str) – Name of the column to set as the primary key.
table_name (str) – Name of the table where the primary key constraint will be added.
schema_name (str | None) – Name of the schema where the table is located; defaults to
None
.