Alex Rivera | Logout

Do MySQL tables need an ID?

Asked 2011-03-03T22:55:02.590
10

Possible Duplicate:
Should each and every table have a primary key?

If you never refer to the ID anywhere is it necessary to include one? Does a table need an ID or primary key?

Edit
Report

1 Answer

0

ID is not a requirement, and neither is primary key, but it is a fundamental concept of the relational database model. You wouldn't usually want to try and use name as a key, for example.

also found : ID fields in SQL tables: rule or law?

answered 2011-03-03T22:55:32.140

Your Answer