mysql中,查询数据库中两个时间段之间的数据有如下两种方法:
-
select * from 表名 where 列名<'时间段1' and 列名>'时间段2'
-
select * from 表名 where 列名 between '时间段1' and '时间段2'
更多推荐
在MySQL数据库中怎么查询出两个时间段之间的数据?
mysql中,查询数据库中两个时间段之间的数据有如下两种方法:
select * from 表名 where 列名<'时间段1' and 列名>'时间段2'
select * from 表名 where 列名 between '时间段1' and '时间段2'
更多推荐
在MySQL数据库中怎么查询出两个时间段之间的数据?
发布评论