user4fun Posted March 15, 2006 Share Posted March 15, 2006 I am sure that some of you are familiar with primary keyt and foreign key in MS ACCESS. how does the same concept wortk with sql.i would appreaciate a link, or explanations or whatever.thank you. Link to comment Share on other sites More sharing options...
raviprakashg Posted March 15, 2006 Share Posted March 15, 2006 http://www.sqlteam.com/item.asp?ItemID=2599 Link to comment Share on other sites More sharing options...
aspnetguy Posted March 15, 2006 Share Posted March 15, 2006 When using Access it is writing the SQL for you, it is still SQL.Are you asking how to write the Queries by hand in SQL??? Link to comment Share on other sites More sharing options...
Prakash Posted March 16, 2006 Share Posted March 16, 2006 When using Access it is writing the SQL for you, it is still SQL.Are you asking how to write the Queries by hand in SQL???<{POST_SNAPBACK}> It works as well as in the Access.Primary Key doesn't allow repetitions and null values.Foreign key is the reference to the Primary key. Link to comment Share on other sites More sharing options...
aspnetguy Posted March 16, 2006 Share Posted March 16, 2006 It works as well as in the Access.Primary Key doesn't allow repetitions and null values.Foreign key is the reference to the Primary key.<{POST_SNAPBACK}> Not exactly. The FK is a reference to another indexed column from another table (not just a PK form another table) Link to comment Share on other sites More sharing options...
user4fun Posted March 17, 2006 Author Share Posted March 17, 2006 I am sorry if i was not clear, what i was trying to find out is how to declare PK AND FK link them together and inforce refrential integrity.stuff like thatThank you Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now