Javatpoint Logo
Javatpoint Logo

Enable Primary Key

ALTER INDEX statement is used to enable a primary key in SQL Server database.

Syntax:

Example:

Enable the primary key "customer_id" on the table "customers".

Output:

SQL Enable primary 1

Now primary key "customer_id" is enabled in table "customers".






Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


B.Tech / MCA