DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SQL
SQL DATEDIFF(date_part, start_date, end_date)
SELECT DATEDIFF(month, '2020-12-31 23:59:59', '2022-01-01 00:00:00'); -- outputs: 13
PREVIOUS
NEXT
Tagged:
#SQL
ADD COMMENT
Topic
COMMENT
Name
6+5 =
Submit