mysql 查询时间段的数据怎么写?
测试让我查询2个时间段的数据,这里不怎么会,所以记录一下:
一般可以使用如下语法: select * from xxx表 where xx='xx' and time between '时间戳' and '时间戳'
本文来自博客园,作者:程序员hg,转载请注明原文链接:https://www.cnblogs.com/hg-blogs/p/17044565.html
测试让我查询2个时间段的数据,这里不怎么会,所以记录一下:
一般可以使用如下语法: select * from xxx表 where xx='xx' and time between '时间戳' and '时间戳'
本文来自博客园,作者:程序员hg,转载请注明原文链接:https://www.cnblogs.com/hg-blogs/p/17044565.html