DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SQL
Postgresql get diff between two dates in Months
EXTRACT(year FROM age(end_date,start_date))*12 + EXTRACT(month FROM age(end_date,start_date))
Source by www.lexykassan.com #
PREVIOUS
NEXT
Tagged:
#Postgresql
#diff
#dates
#Months
ADD COMMENT
Topic
COMMENT
Name
9+6 =
Submit