简体   繁体   English

在一周的第一天在哪里设置mysql?

[英]where to set mysql first day of the week?

I've been looking for how to set the first day of the week on mysql server.I'm wondering if it's set on the application level as property setting or it should be set in queries as what i've been seeing so far on from google search. 我一直在寻找如何在mysql服务器上设置一周的第一天。我想知道它是在应用程序级别设置为属性设置还是应该在查询中设置,因为到目前为止我一直在看从谷歌搜索。

Thanks for reading this. 感谢您阅读本文。

I'm not sure the first day of the week can be changed at all in mySQL. 我不确定在MySQL中一周的第一天是否可以更改。

The manual on WEEKDAY() says: WEEKDAY()手册说:

Returns the weekday index for date (0 = Monday, 1 = Tuesday, … 6 = Sunday). 返回日期的星期几索引(0 =星期一,1 =星期二,…6 =星期日)。

there is no mention that this order can be changed. 没有提及可以更改此顺序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM