Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Help:about rownum
Help me:
When I use rownum:
example:
select a,b,c
from table1,table2,table3
where table1.a1=table2.b1 and table3=table1.c1
order by a
result:
a b c 1 ad ds 2 ds sd 21 sad dd 3 lds kd 4 sd sddf
now :use rownum
select a,b,c
from table1,table2,table3
where table1.a1=table2.b1 and table3=table1.c1
and rownum<4 order by a
result:
a b c 1 ad ds 2 ds sd 4 sd sddf
--Received on Thu Oct 12 2000 - 02:08:42 CDT