常用sql语句
1查找離當前時間最近的一條數據:
? ?select * from monitor where time = (select time from monitor order by time desc limit 1)
2查找當天數據:
??select * from monitor where TO_DAYS(time) = TO_DAYS(NOW())
總結
- 上一篇: centos Ipython安装
- 下一篇: python git是什么_python