berikutyang
ถาม - ตอบ
รายการด้านบน
โทเค็น
แท็ก
ถาม - ตอบ
รายการด้านบน
โทเค็น
แท็ก
กลุ่มของแอททริบิวต์ที่สามารถเป็นคีย์หลักได้ หมายถึงข้อใด
1 ปีs ที่ผ่านมา
ความเห็น:
0
มุมมอง:
40
Share
Like
</td> </tr> </table></td> <td width="782" align="center" valign="top" bgcolor="#FFFFFF"><p class="po" style="font-size:12px;color:#FFF">ห</p> <p class="po">ฐานข้อมูลเชิงสัมพันธ์</p> <table width="500" border="0" align="left" cellpadding="0" cellspacing="0"> <tr> <td width="54"><img src="http://202.29.239.50/temp/2560/class/pi/2030098096-member.jpg" alt="" width="39" height="39"></td> <td width="446" class="iu" style="font-size:28px"><table width="500" border="0" cellspacing="0" cellpadding="0"> <tbody> <tr> <td><span class="iu1" style="font-size:28px">ประเภทของคีย์และ<span class="iu1" style="font-size:28px">กฎที่เกี่ยวข้องกับคีย์</span></span></td> </tr> </tbody> </table></td> </tr> </table> <p>&nbsp;</p> <p>&nbsp;</p> <table width="700" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td valign="top" class="iu"><p><span lang="th" xml:lang="th">&nbsp; &nbsp;คีย์หลัก</span>&nbsp;(Primary Key)<strong><span lang="th" xml:lang="th">&nbsp;</span></strong><span lang="th" xml:lang="th">คือ&nbsp; แอททริบิวท์ที่สามารถใช้เจาะจงแถวใดแถวหนึ่งในรีเลชัน โดยข้อมูลแต่ละแถวจะไม่ซ้ำซ้อนกัน&nbsp; บางครั้งอาจเรียกสั้น ๆ&nbsp; ว่า คีย์</span><span lang="th" xml:lang="th">&nbsp;</span></p> <p><strong><span lang="th" xml:lang="th">&nbsp;คุณสมบัติของคีย์หลัก</span></strong></p> <p><span lang="th" xml:lang="th">&nbsp;&nbsp;&nbsp;&nbsp;1. ข้อมูลของแอททริบิวท์ที่เป็นคีย์หลัก&nbsp; จะมีความเป็นหนึ่งเดียว&nbsp;&nbsp;</span>(uniqueness)&nbsp;&nbsp;<span lang="th" xml:lang="th">กล่าวคือทุกๆ แถวของตารางจะต้องไม่มีข้อมูลของแอททริบิวท์ที่เป็นคีย์หลักนี้ซ้ำกัน</span></p> <p><span lang="th" xml:lang="th">&nbsp;&nbsp;&nbsp;&nbsp;2. ต้องประกอบด้วยจำนวนแอททริบิวท์ที่น้อยที่สุด&nbsp;&nbsp;</span>(minimality)&nbsp;&nbsp;<span lang="th" xml:lang="th">แต่สามารถใช้เป็นตัวชี้เฉพาะเจาะจงหรืออ้างอิงถึงแถวใดแถวหนึ่งในรีเลชันได้</span></p> <p><span lang="th" xml:lang="th">&nbsp;&nbsp;&nbsp;&nbsp;3. ค่าแอททริบิวท์คีย์หลักต้องไม่เป็นค่าว่าง (</span>Not Null)<span lang="th" xml:lang="th"> </span></p> <p><span lang="th" xml:lang="th">&nbsp;&nbsp; คีย์ร่วม (</span>Composite<span lang="th" xml:lang="th">&nbsp;</span>Key<span lang="th" xml:lang="th">) &nbsp;คือ คีย์หลักที่ประกอบด้วยแอททริบิวท์มากกว่าหนึ่งแอททริบิวท์</span></p> <p><span lang="th" xml:lang="th">&nbsp;&nbsp; &nbsp;นัลคีย์แอททริบิวท์ คือ แอททริบิวท์อื่น ๆ ในรีเลชันที่ไม่ใช่ส่วนใดส่วนหนึ่งของคีย์หลัก เช่น ถ้ากำหนดให้คีย์หลักคือแอททริบิวท์รหัสนักศึกษา ดังนั้น แอททริบิวท์ชื่อนักศึกษา สาขาวิชา และหมายเลขบัตรประชาชน เป็นนัลคีย์แอททริบิวท์</span></p> <p>&nbsp;&nbsp;&nbsp; &nbsp;คีย์นอก หรือ<strong>&nbsp;</strong>คีย์อ้างอิง เป็นแอททริบิวท์หรือกลุ่มแอททริบิวท์ในรีเลชันหนึ่ง ซึ่งจะไปปรากฏเป็นคีย์หลักกับอีกรีเลชันหนึ่ง ดังนั้นค่าคีย์นอกจะมีค่าเท่ากับค่าคีย์หลักในแถวในแถวหนึ่งของอีกรีเลชัน หรือค่าในคีย์นอกจะต้องมีค่าอยู่ในโดเมนเดียวกับคีย์หลัก</p> <p><strong><span lang="th" xml:lang="th">คุณสมบัติของคีย์นอก</span></strong></p> <p><span lang="th" xml:lang="th">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1. คีย์นอกจะเป็นแอททริบิวท์&nbsp; หรือกลุ่มของแอททริบิวท์ที่อยู่ในรีเลชัน หนึ่งๆ&nbsp; ที่ค่าของแอททริบิวท์นั้นไปปรากฏเป็นคีย์หลักในอีกรีเลชัน&nbsp; (หรืออาจเป็นรีเลชันเดิมก็ได้)</span></p> <p><span lang="th" xml:lang="th">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2. คีย์นอกเปรียบเสมือนกาวเชื่อมข้อมูลในรีเลชันหนึ่งกับอีกรีเลชันหนึ่ง&nbsp; ซึ่งเป็นการสร้างความสัมพันธ์ระหว่างรีเลชัน</span></p> <p><span lang="th" xml:lang="th">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3. คีย์นอกและคีย์หลักของอีกรีเลชันที่มีความสัมพันธ์กัน&nbsp; จะต้องอยู่ภายใต้โดเมนเดียวกัน&nbsp; และคีย์นอกไม่จำเป็นต้องมีชื่อเหมือนกับคีย์หลักของอีกรีเลชันที่มีความสัมพันธ์กัน</span></p> <p><span lang="th" xml:lang="th">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4. รีเลชันหนึ่งๆ&nbsp; อาจจะมีคีย์นอกอยู่หรือจะไม่มีก็ได้&nbsp; แต่ทุกรีเลชันจะต้องมีคีย์หลักเสมอ&nbsp;</span></p></td> </tr> </table> <table width="500" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="134"><a target="_blank" href="http://202.29.239.50/temp/2560/class/4-1.php"><img src="http://202.29.239.50/temp/2560/class/pi/back-icon1.png" width="86" height="102"></a></td> <td width="138" align="right"><a target="_blank" href="http://202.29.239.50/temp/2560/class/4.php"><img src="http://202.29.239.50/temp/2560/class/pi/Line3.gif" width="352" height="90"></a></td> <td width="228" align="right"><a target="_blank" href="http://202.29.239.50/temp/2560/class/4-2.php"><img src="http://202.29.239.50/temp/2560/class/pi/next.png" width="80" height="101"></a></td> </tr> </table></td> <td width="200" valign="top" bgcolor="#BDE7E7"><table width="201" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="201"><img src="http://202.29.239.50/temp/2560/class/pi/m5.png" width="200" height="250"></td> </tr> <tr> <td><img src="http://202.29.239.50/temp/2560/class/pi/m6.png" width="200" height="250"></td> </tr> <tr> <td align="center"><iframe marginwidth="0" marginheight="0" src="http://www.pttplc.com/th/GetOilPrice.aspx" frameborder="0" width="173" scrolling="no" height="305"></iframe>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> </tr> </table></td> </tr> </table> <map name="Map" id="Map"> <area shape="rect" coords="4,3,225,40" href="1.php"> <area shape="rect" coords="6,41,212,72" href="2.php"> <area shape="rect" coords="7,75,208,145" href="3.php"> <area shape="rect" coords="7,148,172,180" href="4.php"> <area shape="rect" coords="8,181,198,221" href="5.php"> <area shape="rect" coords="7,223,193,283" href="6.php"> <area shape="rect" coords="8,284,196,322" href="7.php"> <area shape="rect" coords="7,323,198,387" href="8.php"> </map> </body> </html></td></tr></table></td></tr></table></body></html>
กลุ่มของแอททริบิวต์ที่มีสิทธิ์ถูกเลือกให้เป็นคีย์หลักของรีเลชัน คือข้อใด
ขอบเขตของค่าของข้อมูลในแอททริบิวต์หนึ่งๆ เรียกว่าอะไร
รีเลชัน หมายถึงข้อใด
ในฐานข้อมูลเชิงสัมพันธ์ จะเรียกค่าที่อยู่ในแต่ละเขตข้อมูลว่าอะไร
ในฐานข้อมูลเชิงสัมพันธ์ เรียกข้อมูลแต่ละรายการว่าอย่างไร
รีเลชั่น หมายถึง
Reply
8
1
แบ่งปัน
การโฆษณา
ข่าวล่าสุด
โชค ดี ติ๋ ม ซำ
1 ปีs ที่ผ่านมา
. โดย
LimitingSufferer
ราศี ที่ ดวง ดี ปี 63
1 ปีs ที่ผ่านมา
. โดย
ThunderousDelegation
ราคา ชาร์ป ดี แม็ ก
1 ปีs ที่ผ่านมา
. โดย
OutlawedRetailer
สี ที่ ใช้ วาด ผนัง
1 ปีs ที่ผ่านมา
. โดย
IntactJurisprudence
Thai SHIBAURA DENSHI Co., Ltd สมัครงาน
1 ปีs ที่ผ่านมา
. โดย
UnopenedDomination
กล่องเครื่องมือ toolbox illustrator cs6
1 ปีs ที่ผ่านมา
. โดย
ImpassiveActuality
ซื้อ โต๊ะ คอม ที่ไหน ดี
1 ปีs ที่ผ่านมา
. โดย
ConcentricWhiteness
ดอกเบี้ย โอ ดี คิด ยัง ไง
1 ปีs ที่ผ่านมา
. โดย
BottledRedemption
ดี แม็ ก มือ สอง สี่ ประตู
1 ปีs ที่ผ่านมา
. โดย
AppreciativeOrganisation
แบบรายงาน โครงการ โรงเรียน 2563
1 ปีs ที่ผ่านมา
. โดย
NumberedCabot
การโฆษณา
ผู้มีอำนาจ
การโฆษณา
home
en
de
fr
ko
pt
zh
it
th
jp
hi
ลิขสิทธิ์ © 2024
berikutyang
Inc.