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

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

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 December 10th, 2012, 04:25 PM
adam_sutherland adam_sutherland is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2012
Posts: 1 adam_sutherland User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 44 sec
Reputation Power: 0
How to create relationship between database tables

Hi all,

Been trying to figure this out for a while whilst learning from scratch.

I have managed to set up a database that is using remote access from vb.net, with the database located on a sever [we have a lot of computers linked to the server and it was necessary].

However, I am struggling to find how to add relationships between tables that have been created using hard-coding. As in the tables have been created through telnet [this was required as the project needed to be more complex].

Data is entered into the table if it is all stored in one table, however this is messy and for normalisation I need to split the database into 3 or 4 tables.

I know you can use wizards etc. to link the tables together i.e. one to many; many to many etc. but you can't do that in telnet when you hard-code.

The first issue is how do I link the tables so that when data is entered the same id [primary key] is used and linked to the other tables. Also how that will be possible through vb.net as data from various text boxes will need to go to separate tables whilst maintaining the same user id.

Apologies for the long reply, but this is the final part of the project, after a tough few months of getting it this far!


Assistance will be appreciated, any questions?

Thanks,

Adam

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMySQL Help > How to create relationship between database tables

Developer Shed Advertisers and Affiliates



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 | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap