日期:2014-05-18  浏览次数:20611 次

请教一句SQL语句
我做了一个下载系统。。
就是在本日下载排行中功能。不知道这句SQL语句怎么写的?
下载的次数是hits,我取系统当天的时间为Today,

------解决方案--------------------
什么数据库呢?
------解决方案--------------------
select hits from tbl where 你的today条件 order by hits desc limit 100

你的表结构不是很清楚
------解决方案--------------------
SELECT * FROMHITS WHERE hitDate > '2007-01-04 ' ORDER BY hits DESC LIMIT 10

表HITS结构 hits integer,hitDate date,hitURL varchar(255)

数据

hitDate hits hitURL
2007-01-05 1 aaaa
2007-01-05 5 bbbb
2007-01-05 7 cccc


------解决方案--------------------
呵呵,比较常用的DML语句