Mysql的date_format与date_sub
生活随笔
收集整理的這篇文章主要介紹了
Mysql的date_format与date_sub
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
date_format?
select date_format('2020-01-22','%Y/%m/%d');date_sub
select DATE_SUB('2020-12-22',INTERVAL 10 day)項目使用
date_format(date_sub(ed, INTERVAL 7 DAY), '%Y/%m/%d')https://www.w3school.com.cn/sql/func_date_format.asp
總結
以上是生活随笔為你收集整理的Mysql的date_format与date_sub的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 如何正确使用电动烤鸽子炉子?
- 下一篇: 榴莲怎么绑绳方便?