Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

The Database Forum


You are currently viewing our The Database Forum as a guest. Please register to participate.
Login



Reply
is primary key already indexed?
Old 07-19-2009, 06:18 AM is primary key already indexed?
orionoreo's Avatar
Ultra Talker

Posts: 335
Name: Jerry
Trades: 0
like the questioned asked... i asked because I always thought primary was just unique... wasn't sure if it was indexed
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
orionoreo is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-19-2009, 09:26 AM Re: is primary key already indexed?
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
Yes it's always indexed.
You can consider a primary key being like a unique index, basically.

It can be more, but it becomes DB specific.
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 07-25-2009, 06:58 PM Re: is primary key already indexed?
Junior Talker

Posts: 4
Trades: 0
Yes, Indexed
MarginalLiaison is offline
Reply With Quote
View Public Profile
 
Old 07-26-2009, 03:16 PM Re: is primary key already indexed?
Super Talker

Posts: 130
Trades: 0
in mysql a primary key is exactly like a unique index with the exception of a unique index allows null values and a primary key doesn't.
__________________
flann

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Last edited by flann; 07-26-2009 at 03:16 PM.. Reason: making note of answer is mysql specific.
flann is offline
Reply With Quote
View Public Profile
 
Old 07-30-2009, 05:40 AM Re: is primary key already indexed?
Extreme Talker

Posts: 167
Name: Jilesh
Trades: 0
Hi,

If you have assign a primary to your database table than it will automatically indexed..
__________________

Please login or register to view this content. Registration is FREE

ASP.NET 3.5 | SQL 2005 Database | US Based Hosting Company | 24 X 7 Support | Daily Backups
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
thewebhostingdi is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to is primary key already indexed?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.16769 seconds with 12 queries