把rownum改为rowid
如:
Select * from table1 where rowid=(select max(rowid) from table1 where xh='0001') and xh='0001'
如:
Select * from table1 where rowid=(select max(rowid) from table1 where xh='0001') and xh='0001'
解决方案 »
- 批量插入的问题
- 求大神指点SQL语句。。。
- 求问论坛文章分页中的问题
- 我觉得SUN JDBC接口应该增加回调机制,使用JDBC应用程序来响应关系数据库系统的事件。大家有何看法?
- [求助]主机连接字符串的问题
- 库名叫ldj 在C:\oracle\ora81\database 和 C:\oracle\admin\ldj\pfile
- kill掉Session后,怎么手动回滚这个Session用过的回滚空间
- 急,数据导入导出问题,问题解决了分数我在加500
- 控制文件的多路复用
- 求助,SQL 递归查询的替代语句写法。急急急,坐等回复
- 在线等待救助,请教大师oracle817安装的 问题
- 关于游标的一个问题
(select a.*,row_number() over(partition by xh order by rownum desc) rm from table1)
where rm=1;