时间戳在线转换:
http://www.4qx.net/timestamp.php
查询一段时间内的记录((-60*10的单位是秒)):
SELECT * FROM table
WHERE unix_timestamp(时间字段)>unix_timestamp(NOW())-60*10
ORDER BY 时间字段 desc
LIMIT 1000
时间戳在线转换:
http://www.4qx.net/timestamp.php
查询一段时间内的记录((-60*10的单位是秒)):
SELECT * FROM table
WHERE unix_timestamp(时间字段)>unix_timestamp(NOW())-60*10
ORDER BY 时间字段 desc
LIMIT 1000