View Single Post

   
  #3 (permalink)  
Old 02-28-2008, 11:29 AM
anne001
 
Posts: n/a
Default Re: how to add a primary key to a table

How do I remove the primary key label on the foreign keys, so I can
add a single autoincrement primary key column?

alter table score drop primary key;
ERROR 1025 (HY000): Error on rename of './sampdb/#sql-185_9' to './
sampdb/score' (errno: 150)

I think it is because the table has two primary keys for some reason.


Reply With Quote