Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use PERIOD_DIFF function in MySQL

Shulou Source: shulou.com Published: 2022-06-01 02:43:09 10月02日 Update

This article mainly shows you "how to use the PERIOD_DIFF function in MySQL", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to use the PERIOD_DIFF function in MySQL" this article.

PERIOD_DIFF (monthStart,monthEnd)

SELECT PERIOD_DIFF (1601 ~ 1603) SELECT PERIOD_DIFF (191602 ~ 191607) SELECT PERIOD_DIFF (1916-02 ~ 1916-07) SELECT PERIOD_DIFF (1602 ~ 9002)->-2->-5-> 5-> 312

This function returns the number of months between monthStart-monthEnd

The above is all the contents of the article "how to use the PERIOD_DIFF function in MySQL". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Functions content articles learning help easy to understand more organization knowledge editing industry information information channels channels research Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Apple OPPO Reno MySQL NVidia