常用SQL
常用SQL
查询表中某个字段为x或y的数据,并且时间根据时间范围筛选,时间为时间戳,需要sql时间函数转换
select *from 表名 where 条件1 in (x,y) and from_unixtime(时间戳,’%Y-%m-%d’) < TIME and TIME > from_unixtime(时间戳,’%Y-%m-%d’) order by TEMP desc limit 15;
日期格式转时间戳
select unix_timestamp(‘2021-02-10 0
原创
2021-02-19 14:50:40 ·
93 阅读 ·
0 评论