birowakskip Posted August 27, 2007 Share Posted August 27, 2007 I really need to change the primary key to one table in my database. Is there a way I can do so without deleting the whole table. Quote Link to comment Share on other sites More sharing options...
Illusion Posted August 27, 2007 Share Posted August 27, 2007 ALTER TABLE tablename DROP PRIMARY KEY, ADD PRIMARY KEY(newcolumn1,newcolumn2,....); Quote Link to comment Share on other sites More sharing options...
birowakskip Posted August 27, 2007 Author Share Posted August 27, 2007 Thanks alot Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.