
select * from table where FROM_UNIXTIME(time, '%Y-%m-%d')=date_format('2019-08-16', '%Y-%m-%d')mysql中怎么查询
一周内,三个月内\x0d\x0a使用sql语句查询日期在一周内的
数据\x0d\x0aselect * from ShopOrder where datediff(week,ordTime,getdate()-1)=0 //查询
当天日期在一周年的数据\x0d\x0aselect * from ShopOrder where datediff(day,ordTime,getdate()-1)=0 //查询当天的所有数据\x0d\x0a SELECT * FROM A where datediff(d,datetime,getdate())
回答于 2022-12-11
评论列表(0条)