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 DateDiff() လုပ်ဆောင်ချက်

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

ဥပမာ

နှစ်များအလိုက် ရက်စွဲနှစ်ခုကြား ခြားနားချက်ကို ပြန်ပေးပါ။

SELECT DateDiff("yyyy", #13/01/1998#, #09/05/2017#);

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

DateDiff() လုပ်ဆောင်ချက်သည် ရက်စွဲနှစ်ခုကြား ခြားနားချက်ကို ပြန်ပေးသည်။

အထားအသို

DateDiff(datepart, date1, date2, firstdayofweek, firstweekofyear)

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

Parameter Description
datepart Required. The 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
date1 and date2 Required. The two dates to calculate the difference between
firstdayofweek Optional. Specifies the first day of the week. Can be one of the following values:
  • 0 = Use the NLS API setting
  • 1 = Sunday (this is 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 DateDiff("m", #13/01/1998#, #09/05/2017#);

ဥပမာ

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

SELECT DateDiff("d", #13/01/1998#, Date());

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