DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SQL
how to extract only year and month from date in sql
SELECT FORMAT(<your-date-field>,"YYYY-MM") AS year-date FROM <your-table>
Source by www.sqltutorial.org #
PREVIOUS
NEXT
Tagged:
#extract
#year
#month
#date
#sql
ADD COMMENT
Topic
COMMENT
Name
8+4 =
Submit