Mysql 求時間 between 昨天 and 上個月的今天 等時間函數

問題:html Mysql表中一列create_time,類型datetime(YYYY-MM-DD HH:MM:SS),想獲取上個月今天到昨天的數據。sql select * from 表名 where date_format(create_time,'%Y-%m-%d') between date_sub(curdate(),interval 1 MONTH) and date_sub(cur
相關文章
相關標籤/搜索