select user from userinfo where FileName = ( select max(FileName) from userinfo )
解决方案 »
- 求一条SQL语句
- linux中运行pg_restore后转入后台运行
- 求一条MySql语句
- MYSQL查找语句问题
- MySql创建表时遇到错误,求助?!
- MySQL版本
- java发送邮件带附件
- 如何将VBB从MYSQL数据库转换到SQLServer数据库(个人心得)
- 这个死锁原因是什么?
- mysql获取时间
- 如何建立 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(春泥)能直接指教一下吗?