是rownum的问题,它总是从1开始.
解决方案 »
- 急! orcale导入数据库命令
- oracle function 的简单问题,求教
- 求一句子翻译
- Oralce10g 导出sql语句 和.sql脚本
- oracle快照dblink,snapshot的时候提示表或试图不存在
- 无法登录OMS的问题,请高手指教?
- 求助 ORA-06512错误 急!
- 求oracle语句的电子书籍
- insert into tele_success select * from tele_success1; 提示出错
- 各位朋友,帮帮忙,在java中连接oracle数据库要配odbc吗?
- 菜鸟问题在线解决立马给分(关于数据库登陆连接???)
- 菜鸟问题,基于NT下ORACLE 9i开发的系统能移植到UNIX平台上吗?顶者有分!
select * from table_1 where rownum = 2;同样是没有结果的.
---------- ------------
1 0003
2 0005
3 0011
4 0012
5 0004
6 0006
7 0010
8 0007
9 0008
10 0009
11 0015
12 0013
13 0014
14 0020
15 0019
16 002116 rows selectedSQL> select idno from (select rownum rm,idno from newsindex) where mod(rm,10)=3;IDNO
------------
0011
0014
cursor t_sor is
select * from table_1
num number:=1;
begin
for v_sor in t_sor loop
if mod(num,10)=3 then
update table_1 set column_1='111' where id=v_sor.id;
end if
num:=num+1;
end loop;
end;可以去掉declare做成一个过程.