how to get number of days, month and year in mysql phpmyadmin4.7.9

preview_player
Показать описание
#numberofdaysmysql, #monthsmysql
#years

with single statement get the difference between number of days,months and years using datediff(), timestampdiff()
Рекомендации по теме
Комментарии
Автор

WE CAN ALSO USE :
SELECT

EXTRACT(year FROM age(end_date, start_date)) AS YEARS,
EXTRACT(month FROM age(end_date, start_date)) AS MONTHS,
EXTRACT(day FROM age(end_date, start_date)) AS DAYS ;

tonyjoseph
Автор

How to get months if we don't know end year?

nishantm
Автор

Good job bro JESUS IS COMING SOON;PREPARE

thechoosen