|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
Limiting Records in Oracle
Hello
What is the Oracle's SQL equivalent to the following query:
Please, post the reply as soon as possible... The above query is not running in SQL Plus ... With Regars Syed Muhammad Fahad |
|
#2
|
||||
|
||||
|
Oracle does not support the LIMIT clause. Use a stored procedure to page records, search Google for examples.
__________________
My blog about OpenSource Databases PDF tutorials about OSS databases, DBMonster ... Please contribute to Open Source Development, fill bug reports!!! Developer Shed eSupport Commented my.ini/my.cnf (PLEASE ADD YOUR OWN CONFIG TRICK) An introduction to database normalization Natural or Surrogate key Custom ordering for your results Correlated and uncorrelated subqueries Don't turn your outer joins into inner joins |
|
#3
|
|||
|
|||
|
Oracle supports the standard function row_number which can be used for paging.
|
|
#4
|
|||
|
|||
|
or u can try something like this...
select * from table where rownum < 10 |
![]() |
| Viewing: Dev Shed Forums > Databases > Oracle Development > Limiting Records in Oracle |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|