MySQL/日期:修订间差异
来自康健生活
| 第64行: | 第64行: | ||
| 当月第一天 | | 当月第一天 | ||
| class="td-pre-noborder" style="padding:0;" | <syntaxhighlight lang="mysql">SELECT concat(date_format(LAST_DAY(now()),'%Y-%m-'),'01');</syntaxhighlight> || || | | class="td-pre-noborder" style="padding:0;" | <syntaxhighlight lang="mysql">SELECT concat(date_format(LAST_DAY(now()),'%Y-%m-'),'01');</syntaxhighlight> || || | ||
|- | |||
| | |||
| class="td-pre-noborder" style="padding:0;" | <syntaxhighlight lang="mysql"></syntaxhighlight> || || | |||
|- | |- | ||
| 当月最后一天 | | 当月最后一天 | ||