6.5 PRIMARY KEY:

6.5 প্ৰাথমিক কী:

In a database table, we can designate one field or a combination of fields together as a primary key. The property of a primary key or primary key constrain is that no more than one record is allowed with the same value for that field. Besides this constrain, we also cannot add a record in a table without filling in the value of a primary key field. In Table 6.2 we cannot designate the NAME field as the primary key. Because there are multiple rows in the table with the same value in the NAME field. But we can designate the ID field as the primary key.

ডাটাবেচ তালিকাএখনত, আমি এটা ক্ষেত্ৰ বা ক্ষেত্ৰৰ সংমিশ্ৰণক প্ৰাথমিক কী হিচাপে একেলগে নিৰ্ধাৰণ কৰিব পাৰোঁ। প্ৰাথমিক কী বা প্ৰাথমিক কী বাধাৰ সম্পত্তি হৈছে যে সেই ক্ষেত্ৰৰ বাবে একে মূল্যৰ সৈতে এটাতকৈ অধিক ৰেকৰ্ড অনুমোদিত নহয়। এই সীমাবদ্ধতাৰ উপৰিও, আমি প্ৰাথমিক কী ফিল্ডৰ মূল্য পূৰণ নকৰাকৈ তালিকাএখনত ৰেকৰ্ড যোগ দিব নোৱাৰো। তালিকা 6.2-ত আমি নাম ক্ষেত্ৰক প্ৰাথমিক কী হিচাপে নিৰ্ধাৰণ কৰিব নোৱাৰো। কিয়নো নাম ক্ষেত্ৰত একে মানৰ সৈতে তালিকাত একাধিক শাৰী আছে। কিন্তু আমি আইডি ক্ষেত্ৰক প্ৰাথমিক চাবি হিচাপে মনোনীত কৰিব পাৰোঁ।