Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JDBC and Relational Databases
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
JDBC and Relational Databases
fetch first in Oracle
shell Johnson
Ranch Hand
Posts: 37
posted 20 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Any one know how to do the following sql in Oracle?
select c1 from table1 order by c2 fetch first 1000 rows only
Jason Steele
Ranch Hand
Posts: 100
posted 20 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I believe you need to do:
SELECT .... WHERE ROWNUM > 0 AND ROWNUM < 1000 ORDER BY c2
It's been a while since I used Oracle, but I believe that's it.
An egg is a chicken's house!
I brought this back from the farm where they grow the tiny ads:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
jdbc resultset to xml
JdbcOdbcDriver/Stored procedures. Please help
Getting the "Most Recent" Record via SQL
Export ResultSet to pipe delimited file
Java API for Exchange Server
More...