Solved

Cardinality;PRIMARY Index;Indexes

Posted on 2006-07-19
3
897 Views
Last Modified: 2008-02-26
Can someone please explain what these terms mean/do?

Cardinality;PRIMARY Index;Indexes

I've seen them in phpmyadmin and are wondering what they are used for.
0
Comment
Question by:mnb93
  • 2
3 Comments
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
ID: 17136887
Cardinality:
  means how many different values you have for 1 column. for a primary key or unique constraints , it must be 1
 

primary key:
  is a constraint enforcing you have each value only once in the table. trying to update or insert duplicate values will be rejected

indexes:
  like in books, a index is to find information quicker.
0
 
LVL 5

Author Comment

by:mnb93
ID: 17136927
if I set something to an index that does what? (one hand typing atm ,soory.)
0
 
LVL 142

Assisted Solution

by:Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3] earned 500 total points
ID: 17137097
an index is a additional structure besides the table, kept up-to-date automatically, that helps WHERE clause to be fast.

like Persons table : PersonID, PersonName

if you don't put a index on PersonID, getting a single row can take more and more time, the larger the table.
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

More Fun with XML and MySQL – Parsing Delimited String with a Single SQL Statement Are you ready for another of my SQL tidbits?  Hopefully so, as in this adventure, I will be covering a topic that comes up a lot which is parsing a comma (or other…
Both Easy and Powerful How easy is PHP? http://lmgtfy.com?q=how+easy+is+php  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikipedia.org/wiki/PHP  Very powerful.  But a…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question