SQL ကျူတိုရီရယ်

SQL ပင်မစာမျက်နှာ SQL မိတ်ဆက် SQL Syntax SQL ကို ရွေးပါ။ SQL Distinct ကို ရွေးချယ်ပါ။ SQL ဘယ်မှာလဲ။ SQL And, Or, Not SQL Order By SQL Insert Into SQL Null တန်ဖိုးများ SQL အပ်ဒိတ် SQL ကိုဖျက်ပါ။ SQL သည် Top ကိုရွေးချယ်ပါ။ SQL Min နှင့် Max SQL အရေအတွက်၊ Avg၊ အစု SQL ကြိုက်တယ်။ SQL သင်္ကေတများ SQL In SQL အကြား SQL နာမည်များ SQL ချိတ်ဆက်မှု SQL Inner Join SQL Left Join SQL Right Join SQL အပြည့်အစုံ Join SQL Self Join SQL Union SQL Group By SQL ရှိခြင်း။ SQL ရှိတယ်။ SQL Any, All SQL Into ကိုရွေးချယ်ပါ။ SQL Insert Into Select လုပ်ပါ။ SQL Case SQL Null လုပ်ဆောင်ချက်များ SQL Stored လုပ်ထုံးလုပ်နည်းများ SQL မှတ်ချက်များ SQL အော်ပရေတာများ

SQL ဒေတာဘေ့စ်

SQL သည် DB ကိုဖန်တီးပါ။ SQL Drop DB SQL Backup DB SQL ဇယားဖန်တီးပါ။ SQL Drop Table SQL Alter Table SQL ကန့်သတ်ချက်များ SQL သည် Null မဟုတ်ပေ။ SQL သီးသန့် SQL Primary Key SQL Foreign Key SQL စစ်ဆေးခြင်း။ SQL မူရင်း SQL အညွှန်း SQL အလိုအလျောက်တိုး SQL ရက်စွဲများ SQL မြင်ကွင်းများ SQL Injection SQL Hosting SQL Data အမျိုးအစားများ

SQL ကိုးကားချက်များ

SQL သော့ချက်စာလုံးများ MySQL လုပ်ဆောင်ချက်များ SQL Server လုပ်ဆောင်ချက်များ MS Access Functions SQL အမြန် Ref

SQL နမူနာများ

SQL နမူနာများ SQL Quiz SQL လေ့ကျင့်ခန်းများ SQL လက်မှတ်

MS Access DatePart() လုပ်ဆောင်ချက်

❮ MS Access လုပ်ဆောင်ချက်များ

ဥပမာ

သတ်မှတ်ထားသောရက်စွဲ၏ တစ်နှစ်အပိုင်းကို ပြန်ပေးပါ-

SELECT DatePart("yyyy", #09/05/2017#);

အဓိပ္ပါယ်နှင့် အသုံးပြုမှု

DatePart() လုပ်ဆောင်ချက်သည် ရက်စွဲတစ်ခု၏ သတ်မှတ်ထားသော အစိတ်အပိုင်းတစ်ခုကို ကိန်းပြည့်အဖြစ် ပြန်ပေးသည်။

အထားအသို

DatePart(datepart, date, firstdayofweek, firstweekofyear)

ကန့်သတ်တန်ဖိုးများ

Parameter Description
datepart Required. The date part to return. Can be one of the following values:
  • yyyy = Year
  • q = Quarter
  • m = month
  • y = Day of the year
  • d = Day
  • w = Weekday
  • ww = Week
  • h = hour
  • n = Minute
  • s = Second
date Required. The date value to be evaluated
firstdayofweek Optional. Specifies the first day of the week. Can be one of the following values:
  • 0 = Use the NLS API setting
  • 1 = Sunday (default)
  • 2 = Monday
  • 3 = Tuesday
  • 4 = Wednesday
  • 5 = Thursday
  • 6 = Friday
  • 7 = Saturday
firstdayofyear Optional. Specifies the first week of the year. Can be one of the following values:
  • 0 = Use the NLS API setting
  • 1 = Use the first week that includes Jan 1st (default)
  • 2 = Use the first week in the year that has at least 4 days
  • 3 = Use the first full week of the year

နည်းပညာဆိုင်ရာအသေးစိတ်

အလုပ်လုပ်သည်- Access 2000 မှ

နောက်ထပ် ဥပမာများ

ဥပမာ

သတ်မှတ်ထားသောရက်စွဲ၏လအပိုင်းကို ပြန်ပေးပါ-

SELECT DatePart("m", #09/05/2017#);

ဥပမာ

ယနေ့ရက်စွဲ၏ တစ်ပတ်တာရက်ကို ပြန်ပေးပါ-

SELECT DatePart("w", Date());

❮ MS Access လုပ်ဆောင်ချက်များ