MySQL primary key

Discussion in 'Software' started by Bustergut, Jan 14, 2006.

  1. Bustergut

    Bustergut Private E-2

    I set up a little program using automatic PHP script generators and MySQL tables. After a bit of investigation I realise I need to change the primary key from forename to surname. I could redo the whole thing, but as I can do a bit of command line work, I could just change the key manually, but can't work out the syntax from the help. Maybe I have to drop it and then recreate it ????

    Alter <tablename> ???????????????????????

    Anybody help ?
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds