primary key and foreign key

前端 未结 4 2109
滥情空心
滥情空心 2021-01-25 05:57

I have 3 tables

   Student    Loan    Book
 - StudentID  LoanID  BookID

which foreign keys do i need to set so when given the student name, sea

4条回答
  •  醉梦人生
    2021-01-25 06:10

    you have to use studentid as foreign key in both the other tables...because you want to search on the basis of student. so this key should go in the remaining tables

提交回复
热议问题