how to set primary key manually
Answers
Answered by
7
Answer:
To set the primary key: Open the database that you want to modify. In the Navigation Pane, right click the table in which you want to set the primary key and, on the shortcut menu, click Design View. Tip: If you don't see the Navigation Pane, press F11 to display it.
Answered by
1
SQL PRIMARY KEY on ALTER TABLE. ADD CONSTRAINT PK_Person PRIMARY KEY (ID,LastName); Note: If you use the ALTER TABLE statement to add a primary key, the primary key column(s) must already have been declared to not contain NULL values (when the table was first created).
Similar questions
India Languages,
1 month ago
Math,
1 month ago
World Languages,
3 months ago
English,
3 months ago
Math,
9 months ago
Physics,
9 months ago