MySQLのWEEK()
関数のどのモードでISO 8601 week of the yearが得られますか? WEEK()
の引数2は、このチャートに応じてモードを設定します。MySQL WEEK()がISO 8601準拠のモード
+--------------------------------------------------------------------+
| Mode | First day of week | Range | Week 1 is the first week ... |
|------+-------------------+-------+---------------------------------|
| 0 | Sunday | 0-53 | with a Sunday in this year |
|------+-------------------+-------+---------------------------------|
| 1 | Monday | 0-53 | with more than 3 days this year |
|------+-------------------+-------+---------------------------------|
| 2 | Sunday | 1-53 | with a Sunday in this year |
|------+-------------------+-------+---------------------------------|
| 3 | Monday | 1-53 | with more than 3 days this year |
|------+-------------------+-------+---------------------------------|
| 4 | Sunday | 0-53 | with more than 3 days this year |
|------+-------------------+-------+---------------------------------|
| 5 | Monday | 0-53 | with a Monday in this year |
|------+-------------------+-------+---------------------------------|
| 6 | Sunday | 1-53 | with more than 3 days this year |
|------+-------------------+-------+---------------------------------|
| 7 | Monday | 1-53 | with a Monday in this year |
+--------------------------------------------------------------------+
ウィルこれらのモードの1年間の8601週ISOを与えますか?
+1を3 SELECT YEARWEEKàラfonction YEARWEEK IL fautimpérativementajouterルモードを注ぐ(私は "MySQLの週ISO-8601" と、この質問のためにGoogleで検索しました – Hnatt