MySQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMySQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 20th, 2000, 12:10 AM
tooljob tooljob is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 17 tooljob User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to tooljob
I'm am just learning MySQL and SQL for that matter. If have create multiple tables
within (1) database, the Identifers (ID) for
each record in each table, do they all have to be different?

For example, if I call the a database with
(2) tables, one table called 'shoes' and
the other called 'tshirts'.

Is the ID in each table independent of each
other? Can I have an ID of 1 for a record
in 'shoes', and also have am ID of 1 for
a record in 'tshirts'?

I really appreciate if anyone can help me answer this?

Thanks

Joe

Reply With Quote
  #2  
Old October 20th, 2000, 04:39 AM
eaamj01 eaamj01 is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2000
Location: Colchester, England
Posts: 131 eaamj01 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 8 sec
Reputation Power: 9
Yes.
When there are only a small amount of tables just using ID won't be too confusing but creating IDshirt and IDshoes would be a sensible design if the databse ever grew into one with hundreds of tables.

Andy J

Reply With Quote
  #3  
Old October 20th, 2000, 06:27 AM
tooljob tooljob is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 17 tooljob User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to tooljob
Thanks Andy, alot!


<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by eaamj01:
Yes.
When there are only a small amount of tables just using ID won't be too confusing but creating IDshirt and IDshoes would be a sensible design if the databse ever grew into one with hundreds of tables.

Andy J
[/quote]


Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMySQL Help > Database w/multiple tables and IDs


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT