正文 (mysql天) 技术帮 V管理员 /2024-08-14/99阅读/0评论 0814 MySQL查询某列的时间减去当前系统时间,小于30天怎么写?有问题的,你now()取出的字符串类型的,顺便问下你定义的字段是什么类型的,字符串怎么可能用四则符号来描述- -# 估计你放的不是时间戳类型的,取条数是吧=》这样写吧: select count(state) from A where unix_timestamp(endtime) >current_timestamp() ;