select user from userinfo where FileName = ( select max(FileName) from userinfo )
解决方案 »
- mysql 查询求解
- mysql client ran out of memory
- Mysql:Using filesort处理不掉.唉.
- 都是一个commit里的,这两种写法哪个更好
- 请教一个mysql中同时更新的问题?
- 如何查询离野地点map_resource_node 最近的城堡city 并更新map_resource_node 表
- 一个考试题,大家看看!在线等!
- mysql5.0版本 select时候出错,为何要求SET SQL_BIG_SELECTS=1,急急急
- 这个查询语句怎么写?(查询在另一张表中的字段值包含某一张表的哪些字段名)
- Data too long for column
- 如何建立 mysql 数据,并导出为access数据库???
- Fatal error: Maximum execution time of 30 seconds exceeded in E:\export\home\wwwroot\enspc\spc\searchresults.php on line 125
不行啊,=也是不对的
-------------------------------------
偶在 postgresql 中测试的,不知道在 mysql 中有没有问题。
试试下面这句:select user from userinfo where FileName =
(select FileName from userinfo group by FileName order by FileName desc limit 1);
也不行啊,其实你的方法和yindesheng() 的一样,
select user from userinfo where FileName='cc.dat';
select FileName from userinfo group by FileName order by FileName desc limit 1;
这两句都能得到正确的结果,但是用=连接之后就不对了。
FAIRNESS:要懂得看文档
trainee(春泥)能直接指教一下吗?