Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

one column used as foreign key for multiple primary keys

This is a discussion on one column used as foreign key for multiple primary keys within the MY SQL forums, part of the Databases category; hai can I use a column as foreign key column for multiple primary keys from multiple tables...

Go Back   Geeks Talk > Databases > MY SQL
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 03-31-2009
Junior Member
 
Join Date: Jul 2007
Location: hyderabad
Posts: 12
Thanks: 0
Thanked 3 Times in 2 Posts
bashasi16 is on a distinguished road
one column used as foreign key for multiple primary keys

hai

can I use a column as foreign key column for multiple primary keys from multiple tables
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 04-01-2009
Moderator
 
Join Date: Jun 2007
Location: Bangalore,India
Posts: 1,853
Thanks: 9
Thanked 168 Times in 142 Posts
debasisdas has a spectacular aura aboutdebasisdas has a spectacular aura about
Re: one column used as foreign key for multiple primary keys

You should not do that.

It is better to avoid such condition. Try to change your data model accordingly.
Reply With Quote
Reply

  Geeks Talk > Databases > MY SQL

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
how to update primary key which has foriegn keys exists kittu4code Oracle 1 11-17-2008 03:20 AM
Primary key & foreign key amitdba08 Oracle 7 10-06-2008 06:02 AM
How to alter the primary column lekhrajdeshmukh SQL 2 02-05-2008 08:07 AM
Column for Primary Key viveksqa SQL 3 01-23-2008 06:13 AM
Different data type for primary and foreign keys Geek_Guest SQL 3 11-28-2007 04:45 AM


All times are GMT -4. The time now is 07:26 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved