how to create table relate with other table

Reply

Join Date: Oct 2009
Posts: 6
Reputation: madhav089 is an unknown quantity at this point 
Solved Threads: 0
madhav089 madhav089 is offline Offline
Newbie Poster

how to create table relate with other table

 
0
  #1
Oct 6th, 2009
I am creating two tables with names group,phone
group caontains id,name,place,phone numbers
phone contains id,phone numbers
my query is that phone table should accept id and phone numbers that matches group table(id and phone numbers) can one please help me .
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 1,402
Reputation: ShawnCplus is a glorious beacon of light ShawnCplus is a glorious beacon of light ShawnCplus is a glorious beacon of light ShawnCplus is a glorious beacon of light ShawnCplus is a glorious beacon of light 
Solved Threads: 224
Sponsor
ShawnCplus's Avatar
ShawnCplus ShawnCplus is offline Offline
Code Monkey
 
0
  #2
Oct 6th, 2009
Might want to take a look in your textbook or around the MySQL documentation before you start asking homework questions without showing work.
GCS d- s+ a-->? C++(++++) UL+++ P+>+++ L+++ E--- W+++
N+ o K w++(---) O? !M- V PS+>++ PE+ Y+ PGP !t- 5? X- R tv+
b+>++ DI+ D G++>+++ e+ h+>++ r y+
PMs asking for help will not be answered, post on the forums. That's what they're there for.
Reply With Quote Quick reply to this message  
Join Date: Oct 2009
Posts: 6
Reputation: madhav089 is an unknown quantity at this point 
Solved Threads: 0
madhav089 madhav089 is offline Offline
Newbie Poster

dont give suggestions

 
-1
  #3
Oct 7th, 2009
If you dont know the answer be idle dont make unnecessary comments,you think ur a jeneous,dont think more about you.
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 3,746
Reputation: nav33n is a jewel in the rough nav33n is a jewel in the rough nav33n is a jewel in the rough 
Solved Threads: 331
Moderator
Featured Poster
nav33n's Avatar
nav33n nav33n is offline Offline
Senior Poster
 
-1
  #4
Oct 7th, 2009
http://dev.mysql.com/doc/refman/5.1/...nstraints.html Check for foreign key constraints, primary key, foreign key in google.
From the above link:
InnoDB rejects any INSERT or UPDATE operation that attempts to create a foreign key value in a child table if there is no a matching candidate key value in the parent table.
Ignorance is definitely not bliss!

*PM asking for help will be ignored*
Reply With Quote Quick reply to this message  
Join Date: Oct 2009
Posts: 6
Reputation: madhav089 is an unknown quantity at this point 
Solved Threads: 0
madhav089 madhav089 is offline Offline
Newbie Poster

thanks a lot

 
0
  #5
Oct 7th, 2009
Originally Posted by nav33n View Post
http://dev.mysql.com/doc/refman/5.1/...nstraints.html Check for foreign key constraints, primary key, foreign key in google.
Hi thanks a lot for ur guideance
Reply With Quote Quick reply to this message  
Reply

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC