Skip to main content
Inspiring
July 7, 2008
Question

do i always have to have a primary key in a mysql table?

  • July 7, 2008
  • 2 replies
  • 290 views
do I always have to have a primary key in a mysql table? what is best practise? thanks
    This topic has been closed for replies.

    2 replies

    Inspiring
    July 7, 2008
    thanks dan as ever you are the man!!
    Inspiring
    July 7, 2008
    primary keys help prevent duplicate records. You don't have to have one but you are probably asking for trouble if don't.