您好,欢迎访问一九零五行业门户网

字段存的是时间戳如何取当天的所有记录 SQL如何写

字段存的是时间戳怎么取当天的所有记录 sql怎么写
字段存的是时间戳怎么取当天的所有记录 sql怎么写
------解决方案--------------------
sql codeselect * from table where date(from_unixtime(time))=date(now());
------解决方案--------------------

sql codeselect * from table where date(from_unixtime(time))=curdate();
------解决方案--------------------

sql codeselect * from table where from_unixtime(time, '%y-%m-%d' ) =curdate();
------解决方案--------------------
以上写法均不推荐:
select * from `table` where `time` >= curdate()

其它类似信息

推荐信息