估计你放的不是时间戳类型的,取条数是吧=》这样写吧:
select count(state) from A where unix_timestamp(endtime) >current_timestamp() ;
时间:2022-04-22 21:06:54
估计你放的不是时间戳类型的,取条数是吧=》这样写吧:
select count(state) from A where unix_timestamp(endtime) >current_timestamp() ;
mysql获取系统当前时间(介绍如何使用mysql获取系统当前时间) 查询mysql语句
2022-08-06