select f.`id` as '文件ID',f.`file_path` as '文件名',from_unixtime(f.`lastModifyTime`/1000) as '上传时间',f.`download_count` as '下载次数' from dfs_file f where f.`lastModifyTime`>1309146844777 and f.`download_count`>0 order by f.`download_count` desc
本文展示了如何使用SQL查询获取文件ID、文件名及其对应的下载次数,通过筛选条件限定最后修改时间及下载次数,最终按下载次数进行降序排列。
select f.`id` as '文件ID',f.`file_path` as '文件名',from_unixtime(f.`lastModifyTime`/1000) as '上传时间',f.`download_count` as '下载次数' from dfs_file f where f.`lastModifyTime`>1309146844777 and f.`download_count`>0 order by f.`download_count` desc
853

被折叠的 条评论
为什么被折叠?