Sql server® 2012 t-sql fundamentals



Download 10,93 Mb.
Pdf ko'rish
bet135/443
Sana26.01.2022
Hajmi10,93 Mb.
#411755
1   ...   131   132   133   134   135   136   137   138   ...   443
Bog'liq
BookSQL

part)

This function is similar to DATEPART and in fact has the same options for the part input. However, 

when relevant, it returns the name of the requested part rather than the number. For example, the 

following code returns the month name of the given input value.

SELECT DATENAME(month, '20090212');

Recall that DATEPART returned the integer 2 for this input. DATENAME returns the name of the 

month, which is language dependent. If your session’s language is one of the English languages 

(such as U.S. English or British English), you get back the value ‘February’. If your session’s language is 

Italian, you get back the value ‘febbraio’. If a part is requested that has no name, but only a numeric 

value (such as year), the DATENAME function returns its numeric value as a character string. For ex-

ample, the following code returns ‘2009’.

SELECT DATENAME(year, '20090212');


Download 10,93 Mb.

Do'stlaringiz bilan baham:
1   ...   131   132   133   134   135   136   137   138   ...   443




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish