6.9 FOREIGN KEY:

6.9 বিদেশী কী:

A foreign key is a key that is used to establish a link between two tables. It is nothing but a field (or collection of fields) in one table that refers to the primary key in another table. For example, in Table 6.6 “Author_D” and “Book ID”, both are foreign keys where “AuthorID” refers to Table 6.4 and “Book_ID” refers to Table 6.5.

বিদেশী চাবি হৈছে এটা চাবি যাক দুখন তালিকাৰ মাজত সংযোগ স্থাপন কৰিবলৈ ব্যৱহাৰ কৰা হয়। এইটো এখন তালিকাৰ ক্ষেত্ৰ (বা ক্ষেত্ৰসংগ্ৰহ) বাহিৰে আন একো নহয় যি আন এখন তালিকাৰ প্ৰাথমিক কী বুজায়। উদাহৰণ স্বৰূপে, তালিকা ” আৰু “বুক আইডি”ত, দুয়োটা বিদেশী কী য’ত “অথৰআইডি” তালিকা 6.4 আৰু “” মানে তালিকা 6.5।