-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: foregin key problem
PostPosted: Thu Jun 28, 2007 9:14 am 
Newbie

Joined: Thu Jun 28, 2007 1:21 am
Posts: 1
hi ,
i am new to it,but i wanted to know code for ,I have a master table ,inwhich column has primay key and another table has reference of it but that table doesnot have primary key

eg. table :state
columns=state_id(primary key),state_name

table :state_detail
columns:state_id(foregin key),state_des


now i ahve to insert data in state_detail and state table has data and i have to insert data on the behalf of that
please give me step for me

from jitender


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.