General SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesGeneral SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old March 15th, 2004, 01:40 PM
Fullest_Empty Fullest_Empty is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Location: Home.
Posts: 2 Fullest_Empty User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to Fullest_Empty
Exclamation You read this now! [Newbie question]

This is a total novice, total newbie, total loser of an enquiry.

I need the tables in my database to be linked through one-to-many relationships, only I don't know how...

For example, I have
Table one, Field A
Table two, Field A

When I add records to Field A in Table One, I want Field A in Table Two to update with the same data.

I'm using MySQL CC and MySQL Front at the moment and I can't see how to do it. I created Field A in both tables, with the same properties in each.. and that's as far as I can see to go..

It's probably staring me right in the face, but my dumb ass is just too dumb. I'm prepared to download other software if anyone can recommend anything that will make it easier.

It would be much appreciated if you could start me off with the SQL query coding.. if you could..

Please assist...

Thanks.

EDIT: After doing a little research, it appears that it is possible to enter all the details in, for example, Field A in Table One, then to have a query duplicate the data into Field A in Table Two. Can anyone help me out with doing this? I will love you long time.

Reply With Quote
  #2  
Old March 15th, 2004, 05:22 PM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 6 m 11 sec
Reputation Power: 8
Send a message via ICQ to stumpy Send a message via MSN to stumpy
Why would you want to fill two tables with the same data? That doesn't sound right.
__________________
DevArticles Moderator
BlueSix - Web Development and Consulting

Reply With Quote
  #3  
Old March 15th, 2004, 06:10 PM
Fullest_Empty Fullest_Empty is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Location: Home.
Posts: 2 Fullest_Empty User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to Fullest_Empty
No no.. it's not just Field A in the two tables.. I have other fields too.. I just simplified to make it easier to understand; obviously it didn't do as intended. Sorry.

EDIT: After doing a little research, it appears that it is possible to enter all the details in, for example, Field A in Table One, then to have a query duplicate the data into Field A in Table Two. Can anyone help me out with doing this? I will love you long time.

Reply With Quote
  #4  
Old March 15th, 2004, 06:19 PM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 6 m 11 sec
Reputation Power: 8
Send a message via ICQ to stumpy Send a message via MSN to stumpy
You have to do it in two statements. You would wrap these two statements in a Stored Procedure.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesGeneral SQL Development > DB relationship question [newbie]


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