Sql server® 2012 t-sql fundamentals



Download 10,93 Mb.
Pdf ko'rish
bet131/443
Sana26.01.2022
Hajmi10,93 Mb.
#411755
1   ...   127   128   129   130   131   132   133   134   ...   443
Bog'liq
BookSQL

partndt_val)

Valid values for the part input include yearquartermonthdayofyeardayweekweekdayhour

minutesecondmillisecondmicrosecond, and nanosecond. You can also specify the part in abbrevi-

ated form, such as yy instead of year. Refer to SQL Server Books Online for details.

The return type for a date and time input is the same type as the input’s type. If this function is 

given a string literal as input, the output is DATETIME.

For example, the following code adds one year to February 12, 2009.

SELECT DATEADD(year, 1, '20090212');

This code returns the following output.

----------------------- 

2010-02-12 00:00:00.000

The 

DATEDIFF

 Function

The DATEDIFF function returns the difference between two date and time values in terms of a speci-

fied date part.

Syntax

DATEDIFF(


Download 10,93 Mb.

Do'stlaringiz bilan baham:
1   ...   127   128   129   130   131   132   133   134   ...   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