GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Oracle  >  SQL
Go To First  |  Previous Question  |  Next Question 
 SQL  |  Question 88 of 171    Print  
How do we restrict the insert/ updates on the foreign column in a table if that table is in different instance that the table with Primary Key. Say for Example Emp and Dept Table. We have deptno in both tables and Deptno in Emp table is the Primary Key and other is foreign Key. How do we control what values we insert in Dept table if both the tables are not in the same instance.

  
Total Answers and Comments: 3 Last Update: August 02, 2006     Asked by: sbagai2001 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
June 29, 2006 01:16:20   #1  
Sridhar        

RE: How do we restrict the insert/ updates on the fore...

Please reframe the question properly. Question framing is not proper


 
Is this answer useful? Yes | No
July 24, 2006 02:06:15   #2  
Prakash Pagam        

RE: How do we restrict the insert/ updates on the fore...
We can do using databasename.tablename
 
Is this answer useful? Yes | No
August 02, 2006 10:38:34   #3  
dmadhusudhanarao Member Since: August 2006   Contribution: 7    

RE: How do we restrict the insert/ updates on the fore...

see if you want totally restric insert and update create a view with required columns and give it to them. dont forget to readonly while creating the view.


 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape