Why Register With OSV?

Join 5700+ of your peers

Get enriched. Access 1270+ quality tutorials right away on:

  • Joomla 2.5.X, 3.0.X
  • WordPress 3.5.X
  • Shopping Carts
  • E-Commerce Payment Gateways
  • PDFs for each tutorial - FREE for download
  • New topics and tutorials added weekly

FREE EBooks

FREE Templates

Member Login

Not a member yet? Sign Up!

Opensourcevarsity Logo
Tutorials & Training from experienced world class trainers
Welcome, Guest
Username Password: Remember me

Multiple Primary Keys
(1 viewing) (1) Guest
All your queries regarding
MySQL Installation,
Learning MySQL DBA,
and tonnes more... will be solved in this forum
  • Page:
  • 1

TOPIC: Multiple Primary Keys

Multiple Primary Keys 1 year, 10 months ago #722

  • nikhil
  • OFFLINE
  • Senior Boarder
  • Posts: 51
  • Karma: 1
Hello,

In MYSQL,my database name is customerdetails, and in that databse, table name is personelinfo. And i want to have multiple primary keys in a single table. Is it possible to do it in MySQL?

Thanx in advance..

Re: Multiple Primary Keys 1 year, 9 months ago #747

  • yoko
You can only have one primary key, but you can have multiple columns in your primary key.

You can also have Unique Indexes on your table, which will work a bit like a primary key in that they will enforce unique values, and will speed up querying of those values.
  • Page:
  • 1
Time to create page: 1.15 seconds
O-S-V Free Templates

FREE HTML / Joomla / WordPress Templates For Download
Registration Required

CONNECT WITH US

Sitemap   |   Privacy Policy   |   MySQL(70)   |   Disclaimer   |   Reach Out To Us
Designed by Ivan Bayross & Meher Bala | Powered by Joomla
© 2013 All Rights Reserved.