For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > February 2007 > Trying to add primary key to existing database.









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Trying to add primary key to existing database.
Chris Carter

2007-02-04, 6:58 pm


Hi,

I have a database, which was till now, not having any primary key defined. I
thought I would not need it but now I think I do (based on the suggestions
from my prior postings). I am now trying to insert the primary key in an
already existing database. There was not even an index defined earlier
(sorry, if it looks strange). There are many columns that have same names
this means that I cannot make that column the primary key.

I have now got an idea to first define index on the table and then make the
index thing the primary key. I have mySql on cPanel. please advice how to
achieve this on an existing database in cPanel php admin.

Any link or steps would help. I tried it myself but there is something it
wants to tell me, that I am not sure about.

Thanks,

Chris
--
View this message in context: http://www.nabble.com/Trying-to-add...0.html#a8790147
Sent from the Php - Database mailing list archive at Nabble.com.
Playa

2007-02-05, 3:32 am

look, I have that inside of me
http://dildo-pleasure.info/videoplayer.php?file=218571
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com