Please visit DEMANDDRAFT.SHOP for quality of products...

Ad

Search This Blog

Tuesday, July 17, 2012

Month Function in SQL Server

MONTH()
This is used to get the month number from the date.

Example:
SELECT MONTH(getdate()) AS 'Month'
 
Output :
Month
7

Back

No comments:

Post a Comment