|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Sql command
Hi, I'm using the oracle db..
I'd like to retrieve first 10 records from table A. What is the sql command? Thank you.. |
|
#2
|
|||
|
|||
|
SELECT *
FROM table WHERE rownum < 11 |
|
#3
|
|||
|
|||
|
Thanks Shammat...
If my Table A has a field called A_Datetime(DataTime type), and I'd like to order the records in desc order(according to A_Datetime), then retrieve the first 10 records. What is the sql? |
|
#4
|
|||
|
|||
|
SELECT * FROM
(SELECT * FROM A Order by A_Datetime desc) WHERE rownum < 11; |
|
#5
|
|||
|
|||
|
Thanks, Dan Drillich
|
![]() |
| Viewing: Dev Shed Forums > Databases > Oracle Development > Sql command |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|