估计你放的不是时间戳类型的,取条数是吧=》这样写吧:
select count(state) from A where unix_timestamp(endtime) >current_timestamp() ;
如果觉得《mysql 查询每个月 MySQL查询某列的时间减去当前系统时间 – 数据库 – 前端 mysql c api 多线程》对你有帮助,请点赞、收藏,并留下你的观点哦!
时间:2019-03-24 02:38:00
估计你放的不是时间戳类型的,取条数是吧=》这样写吧:
select count(state) from A where unix_timestamp(endtime) >current_timestamp() ;
如果觉得《mysql 查询每个月 MySQL查询某列的时间减去当前系统时间 – 数据库 – 前端 mysql c api 多线程》对你有帮助,请点赞、收藏,并留下你的观点哦!
MySQL查询某列的时间减去当前系统时间 小于30天怎么写? mysql php 语句
2018-10-22