select * from tablename where 列2 in
(select max(列2) from tablename group by 列3);
(select max(列2) from tablename group by 列3);
解决方案 »
- 关于远程访问oracle10g数据库
- 以用execute immediate 传入 record 类型参数
- 如何将表中多行数据连接起来形成一个数据
- 一个子查询的问题
- 如何在windows2003下安装oracle9i
- 监听不启动,请求帮助
- 谁能提供oracle provider for ole db别的下载地址, 我在oracle网站就是下不了,,
- 如何用sql语句计算一个标有多少列(字段)呢?
- JSP 分页时 URL传值中文不能实现翻页 当是英文时可以实现
- PL/SQL 登陆报错,怎么解决(账号密码正确)
- 怎样用oracle8i编写.sql脚本啊?还是用其他的工具?具体怎样操作?谢谢!!
- 急!急!]为什么在pl/sql中使用desc tablename命令不好使?弹出错误提示"ORA-01460:未实现或无理的转换请求"??
where exists
(select max(列2) from tablename group by 列3);
where exists
(select max(列2) from tablename group by 列3);
用in速度慢
(select max(列2),列3 from tablename group by 列3);
mix(用系统时间-列2)