估计你放的不是时间戳类型的,取条数是吧=》这样写吧:
select count(state) from A where unix_timestamp(endtime) >current_timestamp() ;
时间:2021-12-30 14:49:25
估计你放的不是时间戳类型的,取条数是吧=》这样写吧:
select count(state) from A where unix_timestamp(endtime) >current_timestamp() ;
MySQL查询某列的时间减去当前系统时间 小于30天怎么写? mysql php 语句
2019-07-03