Thuta Learning
ရှာဖွေရန်
AdvancedData & Databasesbeginner

DROP TABLE

စိတ်လျှော့ပါ။ ဒီခန်းကို စာအုပ်လိုမဟုတ်ဘဲ စကားပြောသလိုပဲ၊ နားလည်လွယ်အောင် ရှင်းပါမယ်။

DROP TABLE က table တစ်ခုလုံးကို database ကနေဖျက်ပစ်ပါတယ်။ Data နဲ့ structure နှစ်ခုလုံးပျောက်သွားနိုင်တာကြောင့် သင်ခန်းစာအတွက်နားလည်ထားရမယ့် command ဖြစ်ပေမဲ့ real project မှာ အလွန်သတိထားရပါတယ်။

sql
DROP TABLE Employees;
You should see
What this code does: Employees table ကို database ထဲကနေဖယ်ရှားပါတယ်။ Important warning: Table ထဲက data တွေလည်းပျောက်နိုင်ပါတယ်။ မလုပ်ခင် backup ရှိ/မရှိ၊ table name မှန်/မမှန် သေချာစစ်ပါ။ Safer habit: မသေချာရင် DROP TABLE မလုပ်ခင် database admin သို့မဟုတ် team lead နဲ့စစ်ပါ။