Home  >  Article  >  Database  >  How to use the DAYNAME function in MySQL

How to use the DAYNAME function in MySQL

WBOY
WBOYforward
2023-04-17 19:52:041597browse

DAYNAME(date)

SELECT DAYNAME(‘2016-01-16') 
SELECT DAYNAME(‘2016-01-16 00:00:00')
-> Saturday (表示返回date是周几的英文全称名字)

The above is the detailed content of How to use the DAYNAME function in MySQL. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:yisu.com. If there is any infringement, please contact admin@php.cn delete