单表查询,经过排序,怎么取第一条数据啊?
SELECT * FROM movie where DATE_SUB(CURDATE(),INTERVAL 30 DAY) > createtime order by movie_clickcount , createtime;
解决方案:20分
rownum
SELECT * FROM movie where DATE_SUB(CURDATE(),INTERVAL 30 DAY) > createtime order by movie_clickcount , createtime;