SlideShare a Scribd company logo
Bμi 4
1. KKHHÁÁII NNIIỆỆMM CCHHÍÍNNHH 
•• BBBBảảảảnnnngggg ((((TTTTaaaabbbblllleeee)))) 
TTaabbllee ((bbảảnngg)) llàà ggìì?? 
• Là thành phần cơ sở tạo nên cơ sở dữ liệu. 
• Các bảng được tạo ra sẽ chứa toàn bộ dữ liệu mà người 
dùng cần để khai thác.
Mỗi cột (trường) của bảng dùng để 
lưu thuộc tính của học sinh 
Mỗi hàng (bản ghi) của bảng dùng 
để lưu thông tin của học sinh
1. KKHHÁÁII NNIIỆỆMM CCHHÍÍNNHH 
•• TTTTrrrrưưưườờờờnnnngggg ((((FFFFiiiieeeelllldddd)))) 
TTrrưườờnngg ((FFiieelldd)) llàà ggìì?? 
• Là một cột của bảng thể hiện một thuộc tính cần quản lí 
của chủ thể 
TTrrưườờnngg ‘‘NNggaayySSiinnhh’’ TTrrưườờnngg ‘‘HHooDDeemm’’
KKHHÁÁII NNIIỆỆMM CCHHÍÍNNHH 
•• BBBBảảảảnnnn GGGGhhhhiiii ((((RRRReeeeccccoooorrrrdddd)))) 
BBảảnn gghhii ((RReeccoorrdd)) llàà ggìì?? 
• Là một hàng của bảng gồm dữ liệu về các thuộc tính của 
một cá thể cần quản lí. 
Bản ghi thứ 5 có bộ dữ liệu là: 5, Trần Bội Di, Nam, 
16/09/1990, Tp.HCM, đoàn viên, 225 Phạm Hữu Chí.
KKHHÁÁII NNIIỆỆMM CCHHÍÍNNHH 
•• KKKKiiiiểểểểuuuu ddddữữữữ lllliiiiệệệệuuuu ((((DDDDaaaattttaaaa TTTTyyyyppppeeee)))) 
KKiiểểuu ddữữ lliiệệuu ((DDaattaa TTyyppee)) llàà ggìì?? 
• Là kiểu giá trị của dữ liệu lưu trong các trường. 
• Mỗi trường chỉ chọn một kiểu dữ liệu. 
CCáácc kkiiểểuu ddữữ lliiệệuu
Kiểu • KKKiiiểểểuuu ddddữữữữ lllliiiiệệệệuuuu ((((DDDDaaaattttaaaa TTTTyyyyppppeeee)))) 
KKiiểểuu ddữữ lliiệệuu MMôô ttảả ddữữ lliiệệuu KKíícchh tthhưướớcc llưưuu ttrrữữ 
Text Kiểu văn bàn gồm các kí tự 0 – 255 kí tự 
Number Kiểu số 1, 2, 4 hoặc 8 byte 
Date/Time Kiểu ngày/giờ 8 byte 
Currency Kiểu tiền tệ 8 byte 
Auto Number Kiểu số đếm, tăng tự động ( có 
bước tăng là 1) cho một bản ghi 
mới 
4 byte hoặc 16 byte 
Yes/No Kiểu boolean (hay Logic) 1 bit 
Meno Kiểu văn bản 0 – 65536 kí tự
2. TTẠẠOO VVÀÀ SSỬỬAA CCẤẤUU TTRRÚÚCC BBẢẢNNGG 
a. TẠO CẤU TRÚC BẢNG 
CCáácchh 11:: CClliicckk cchhọọnn 
CCáácchh 22:: cchhọọnn FFiillee  NNeeww
CCáácchh 33:: CClliicckk cchhọọnn
CClliicckk cchhọọnn 
XXuuấấtt hhiiệệnn hhộộpp tthhooạạii
HHộộpp tthhooạạii FFiillee NNeeww DDaattaabbaassee 
Nhập tên cơ sở dữ 
liệu mới 
CClliicckk cchhọọnn 
XXuuấấtt hhiiệệnn ccửửaa ssổổ ccơơ ssởở ddữữ lliiệệuu mmớớii ttạạoo
CCửửaa ssổổ ccơơ ssởở ddữữ lliiệệuu mmớớii ttạạoo 
CClliicckk cchhọọnn 
CClliicckk cchhọọnn
CCửửaa ssổổ ccấấuu ttrrúúcc bbảảnngg 
Định nghĩa 
trường 
Các tính chất của 
trường
TTạạoo mmộộtt ttrrưườờnngg 
Bước 1: Gõ tên 
trường vào cột 
Field Name 
Bước 3: Mô tả 
nội dung trường 
trong cột 
Description. 
Bước 2: Click 
vào mũi tên 
trong cột Data 
Type để chọn 
một kiểu dữ liệu 
trong danh sách 
mở ra. 
Bước 4: Lựa chọn tính 
chất của trường trong 
phần Field Properties.
CCáácc ttíínnhh cchhấấtt ccủủaa ttrrưườờnngg 
FFiieelldd SSiizzee:: kích 
thước trường - Đặt 
kích thước tối đa 
cho dữ liệu lưu 
trong trường 
FFoorrmmaatt:: định dạng 
– quy định cách 
hiển thị và in dữ liệu 
CCaappttiioonn:: cho phép 
thay tên trường 
bằng các phụ đề dễ 
hiểu với người dùng 
khi hiển thị 
Default: Dùng để 
xác định giá trị tự 
độngđưa vào 
trường khi tạo bản 
ghi mới.
Thay đổi tính cchhấấtt ccủủaa mmộộtt ttrrưườờnngg 
Click chọn vào dòng 
định nghĩa trường. 
Thực hiện các thay đổi 
cần thiết trong phần 
Field Properties
Tại sao lại pphhảảii cchhỉỉ đđịịnnhh kkhhóóaa cchhíínnhh?? 
• Một CSDL trong Access có thiết kế tốt là CSDL mà mỗi 
bản ghi trong một bảng phải là duy nhất, không có hai 
hàng dữ liệu giống hệt nhau. 
• Khi xây dựng bảng trong Access, người dùng cần chỉ ra 
trường mà giá trị của nó xác định duy nhất mỗi hàng của 
bảng. 
• Trường đó tạo thành khóa chính ((PPrriimmaarryy KKeeyy)) của 
bảng
CChhỉỉ đđịịnnhh kkhhóóaa cchhíínnhh 
Click chọn vào 
trường làm khóa 
chính. 
CClliicckk cchhọọnn
CChhỉỉ đđịịnnhh kkhhóóaa cchhíínnhh 
CChhọọnn EEddiitt  cchhọọnn PPrriimmaarryy KKeeyy 
CClliicckk pphhảảii  cchhọọnn PPrriimmaarryy KKeeyy
CChhỉỉ đđịịnnhh kkhhóóaa cchhíínnhh 
Trường MaSO được chỉ 
định là khóa chính
LLưưuu ccấấuu ttrrúúcc bbảảnngg 
•• CChhọọnn FFiillee  SSaavvee hhooặặcc cclliicckk vvààoo nnúútt llệệnnhh 
•• GGõõ ttêênn bbảảnngg vvààoo ôô TTaabbllee NNaammee ttrroonngg hhộộpp tthhooạạii SSaavvee AAss 
•• NNhhấấnn OOKK hhooặặcc pphhíímm EEnntteerr
b. TTHHAAYY ĐĐỔỔII CCẤẤUU TTRRÚÚCC BBẢẢNNGG 
Chọn chế độ nào để thay đổi cấu trúc 
của trường? 
• Thay đổi cấu trúc của trường, ta hiển thị bảng ở chế 
độ thiết kế
Thay đđổổii tthhứứ ttựự ccủủaa ttrrưườờnngg 
•• CChhọọnn ttrrưườờnngg mmuuốốnn tthhaayy đđổổii vvịị ttrríí 
• Nhấn và giữ mouse, trong Access sẽ hiển thị một đường 
nhỏ nằm ngang ngay trên trường được chọn. 
• Di chuyển mouse, đường nằm ngang đó sẽ cho biết vị trí 
mới của trường 
•• TThhảả mmoouussee kkhhii đđãã ddii cchhuuyyểểnn ttrrưườờnngg đđếếnn vvịị ttrríí mmoonngg mmuuốốnn..
XXóóaa ttrrưườờnngg 
•• CChhọọnn ttrrưườờnngg mmuuốốnn xxóóaa 
•• NNhhấấnn EEddiitt  DDeelleettee RRoowwss hhooặặcc cclliicckk nnúútt 
•• CChhọọnn FFiillee  SSaavvee đđểể llưưuu ccấấuu ttrrúúcc bbảảnngg
TThhaayy đđổổii kkhhóóaa cchhíínnhh 
•• CChhọọnn ttrrưườờnngg mmuuốốnn cchhỉỉ đđịịnnhh llàà kkhhóóaa cchhíínnhh 
•• NNhhấấnn EEddiitt  PPrriimmaarryy KKeeyy hhooặặcc cclliicckk nnúútt 
•• CChhọọnn FFiillee  SSaavvee đđểể llưưuu ccấấuu ttrrúúcc bbảảnngg
XXÓÓAA VVÀÀ ĐĐỔỔII TTÊÊNN BBẢẢNNGG 
XXóóaa bbảảnngg 
CClliicckk cchhọọnn 
CClliicckk cchhọọnn
CClliicckk pphhảảii 
CClliicckk cchhọọnn 
XXuuấấtt hhiiệệnn hhộộpp tthhooạạii ccủủaa AAcccceessss
HHộộpp tthhooạạii ccủủaa AAcccceessss
ĐĐổổii ttêênn bbảảnngg 
CClliicckk pphhảảii 
CClliicckk cchhọọnn
ĐĐổổii ttêênn bbảảnngg 
CClliicckk 
Nhập tên 
mới vào 
rồi Enter
H·y nhí! 
MỘT SỐ THAO TÁC VỚI 
BẢNG - TABLE 
 Table - lμ ®èi t­îng 
dïng ®Ó l­u 
tr÷ c¸c ®èi t­îng 
c¬ së - 
 Mét sè thao kh¸i niÖm c¬ b¶n. 
– CDSL. 
– Tr­êng 
- Field. 
– B¶n ghi - Rercord. 
– Report – B¸o c¸o. 
 Mét sè thao t¸c c¬ b¶n 
K§ :Start/Program / Microsoft 
Access 
CẤU TRÚC BẢNG - TABLE 
KT : File / Exit 
– T¹o míi mét CSDL: File / New. 
– Më mét CSDL ®· cã : File / 
Open.

More Related Content

Featured

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
Christy Abraham Joy
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
MindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
GetSmarter
 

Featured (20)

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 

Bai 4 cau truc bang ..

  • 2. 1. KKHHÁÁII NNIIỆỆMM CCHHÍÍNNHH •• BBBBảảảảnnnngggg ((((TTTTaaaabbbblllleeee)))) TTaabbllee ((bbảảnngg)) llàà ggìì?? • Là thành phần cơ sở tạo nên cơ sở dữ liệu. • Các bảng được tạo ra sẽ chứa toàn bộ dữ liệu mà người dùng cần để khai thác.
  • 3. Mỗi cột (trường) của bảng dùng để lưu thuộc tính của học sinh Mỗi hàng (bản ghi) của bảng dùng để lưu thông tin của học sinh
  • 4. 1. KKHHÁÁII NNIIỆỆMM CCHHÍÍNNHH •• TTTTrrrrưưưườờờờnnnngggg ((((FFFFiiiieeeelllldddd)))) TTrrưườờnngg ((FFiieelldd)) llàà ggìì?? • Là một cột của bảng thể hiện một thuộc tính cần quản lí của chủ thể TTrrưườờnngg ‘‘NNggaayySSiinnhh’’ TTrrưườờnngg ‘‘HHooDDeemm’’
  • 5. KKHHÁÁII NNIIỆỆMM CCHHÍÍNNHH •• BBBBảảảảnnnn GGGGhhhhiiii ((((RRRReeeeccccoooorrrrdddd)))) BBảảnn gghhii ((RReeccoorrdd)) llàà ggìì?? • Là một hàng của bảng gồm dữ liệu về các thuộc tính của một cá thể cần quản lí. Bản ghi thứ 5 có bộ dữ liệu là: 5, Trần Bội Di, Nam, 16/09/1990, Tp.HCM, đoàn viên, 225 Phạm Hữu Chí.
  • 6. KKHHÁÁII NNIIỆỆMM CCHHÍÍNNHH •• KKKKiiiiểểểểuuuu ddddữữữữ lllliiiiệệệệuuuu ((((DDDDaaaattttaaaa TTTTyyyyppppeeee)))) KKiiểểuu ddữữ lliiệệuu ((DDaattaa TTyyppee)) llàà ggìì?? • Là kiểu giá trị của dữ liệu lưu trong các trường. • Mỗi trường chỉ chọn một kiểu dữ liệu. CCáácc kkiiểểuu ddữữ lliiệệuu
  • 7. Kiểu • KKKiiiểểểuuu ddddữữữữ lllliiiiệệệệuuuu ((((DDDDaaaattttaaaa TTTTyyyyppppeeee)))) KKiiểểuu ddữữ lliiệệuu MMôô ttảả ddữữ lliiệệuu KKíícchh tthhưướớcc llưưuu ttrrữữ Text Kiểu văn bàn gồm các kí tự 0 – 255 kí tự Number Kiểu số 1, 2, 4 hoặc 8 byte Date/Time Kiểu ngày/giờ 8 byte Currency Kiểu tiền tệ 8 byte Auto Number Kiểu số đếm, tăng tự động ( có bước tăng là 1) cho một bản ghi mới 4 byte hoặc 16 byte Yes/No Kiểu boolean (hay Logic) 1 bit Meno Kiểu văn bản 0 – 65536 kí tự
  • 8. 2. TTẠẠOO VVÀÀ SSỬỬAA CCẤẤUU TTRRÚÚCC BBẢẢNNGG a. TẠO CẤU TRÚC BẢNG CCáácchh 11:: CClliicckk cchhọọnn CCáácchh 22:: cchhọọnn FFiillee  NNeeww
  • 10. CClliicckk cchhọọnn XXuuấấtt hhiiệệnn hhộộpp tthhooạạii
  • 11. HHộộpp tthhooạạii FFiillee NNeeww DDaattaabbaassee Nhập tên cơ sở dữ liệu mới CClliicckk cchhọọnn XXuuấấtt hhiiệệnn ccửửaa ssổổ ccơơ ssởở ddữữ lliiệệuu mmớớii ttạạoo
  • 12. CCửửaa ssổổ ccơơ ssởở ddữữ lliiệệuu mmớớii ttạạoo CClliicckk cchhọọnn CClliicckk cchhọọnn
  • 13. CCửửaa ssổổ ccấấuu ttrrúúcc bbảảnngg Định nghĩa trường Các tính chất của trường
  • 14. TTạạoo mmộộtt ttrrưườờnngg Bước 1: Gõ tên trường vào cột Field Name Bước 3: Mô tả nội dung trường trong cột Description. Bước 2: Click vào mũi tên trong cột Data Type để chọn một kiểu dữ liệu trong danh sách mở ra. Bước 4: Lựa chọn tính chất của trường trong phần Field Properties.
  • 15. CCáácc ttíínnhh cchhấấtt ccủủaa ttrrưườờnngg FFiieelldd SSiizzee:: kích thước trường - Đặt kích thước tối đa cho dữ liệu lưu trong trường FFoorrmmaatt:: định dạng – quy định cách hiển thị và in dữ liệu CCaappttiioonn:: cho phép thay tên trường bằng các phụ đề dễ hiểu với người dùng khi hiển thị Default: Dùng để xác định giá trị tự độngđưa vào trường khi tạo bản ghi mới.
  • 16. Thay đổi tính cchhấấtt ccủủaa mmộộtt ttrrưườờnngg Click chọn vào dòng định nghĩa trường. Thực hiện các thay đổi cần thiết trong phần Field Properties
  • 17. Tại sao lại pphhảảii cchhỉỉ đđịịnnhh kkhhóóaa cchhíínnhh?? • Một CSDL trong Access có thiết kế tốt là CSDL mà mỗi bản ghi trong một bảng phải là duy nhất, không có hai hàng dữ liệu giống hệt nhau. • Khi xây dựng bảng trong Access, người dùng cần chỉ ra trường mà giá trị của nó xác định duy nhất mỗi hàng của bảng. • Trường đó tạo thành khóa chính ((PPrriimmaarryy KKeeyy)) của bảng
  • 18. CChhỉỉ đđịịnnhh kkhhóóaa cchhíínnhh Click chọn vào trường làm khóa chính. CClliicckk cchhọọnn
  • 19. CChhỉỉ đđịịnnhh kkhhóóaa cchhíínnhh CChhọọnn EEddiitt  cchhọọnn PPrriimmaarryy KKeeyy CClliicckk pphhảảii  cchhọọnn PPrriimmaarryy KKeeyy
  • 20. CChhỉỉ đđịịnnhh kkhhóóaa cchhíínnhh Trường MaSO được chỉ định là khóa chính
  • 21. LLưưuu ccấấuu ttrrúúcc bbảảnngg •• CChhọọnn FFiillee  SSaavvee hhooặặcc cclliicckk vvààoo nnúútt llệệnnhh •• GGõõ ttêênn bbảảnngg vvààoo ôô TTaabbllee NNaammee ttrroonngg hhộộpp tthhooạạii SSaavvee AAss •• NNhhấấnn OOKK hhooặặcc pphhíímm EEnntteerr
  • 22. b. TTHHAAYY ĐĐỔỔII CCẤẤUU TTRRÚÚCC BBẢẢNNGG Chọn chế độ nào để thay đổi cấu trúc của trường? • Thay đổi cấu trúc của trường, ta hiển thị bảng ở chế độ thiết kế
  • 23. Thay đđổổii tthhứứ ttựự ccủủaa ttrrưườờnngg •• CChhọọnn ttrrưườờnngg mmuuốốnn tthhaayy đđổổii vvịị ttrríí • Nhấn và giữ mouse, trong Access sẽ hiển thị một đường nhỏ nằm ngang ngay trên trường được chọn. • Di chuyển mouse, đường nằm ngang đó sẽ cho biết vị trí mới của trường •• TThhảả mmoouussee kkhhii đđãã ddii cchhuuyyểểnn ttrrưườờnngg đđếếnn vvịị ttrríí mmoonngg mmuuốốnn..
  • 24. XXóóaa ttrrưườờnngg •• CChhọọnn ttrrưườờnngg mmuuốốnn xxóóaa •• NNhhấấnn EEddiitt  DDeelleettee RRoowwss hhooặặcc cclliicckk nnúútt •• CChhọọnn FFiillee  SSaavvee đđểể llưưuu ccấấuu ttrrúúcc bbảảnngg
  • 25. TThhaayy đđổổii kkhhóóaa cchhíínnhh •• CChhọọnn ttrrưườờnngg mmuuốốnn cchhỉỉ đđịịnnhh llàà kkhhóóaa cchhíínnhh •• NNhhấấnn EEddiitt  PPrriimmaarryy KKeeyy hhooặặcc cclliicckk nnúútt •• CChhọọnn FFiillee  SSaavvee đđểể llưưuu ccấấuu ttrrúúcc bbảảnngg
  • 26. XXÓÓAA VVÀÀ ĐĐỔỔII TTÊÊNN BBẢẢNNGG XXóóaa bbảảnngg CClliicckk cchhọọnn CClliicckk cchhọọnn
  • 27. CClliicckk pphhảảii CClliicckk cchhọọnn XXuuấấtt hhiiệệnn hhộộpp tthhooạạii ccủủaa AAcccceessss
  • 29. ĐĐổổii ttêênn bbảảnngg CClliicckk pphhảảii CClliicckk cchhọọnn
  • 30. ĐĐổổii ttêênn bbảảnngg CClliicckk Nhập tên mới vào rồi Enter
  • 31. H·y nhí! MỘT SỐ THAO TÁC VỚI BẢNG - TABLE  Table - lμ ®èi t­îng dïng ®Ó l­u tr÷ c¸c ®èi t­îng c¬ së -  Mét sè thao kh¸i niÖm c¬ b¶n. – CDSL. – Tr­êng - Field. – B¶n ghi - Rercord. – Report – B¸o c¸o.  Mét sè thao t¸c c¬ b¶n K§ :Start/Program / Microsoft Access CẤU TRÚC BẢNG - TABLE KT : File / Exit – T¹o míi mét CSDL: File / New. – Më mét CSDL ®· cã : File / Open.