|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now! |
|
#1
|
|||
|
|||
|
Select only 1 iteam
Hi!
In mySQL there is this function asc limit 1 which will sort the sql select statement and return only 1 result. When I do this, it says SQL Command not properly ended. Any suggestion? Thank you. Code:
SELECT myDate order by myDate asc limit 1 |
|
#2
|
|||
|
|||
|
Code:
SELECT myDate from (select myDate from t order by myDate asc ) where rownum = 1 |
|
#3
|
|||
|
|||
|
Thank you.
|
![]() |
| Viewing: Dev Shed Forums > Databases > Oracle Development > Select only 1 iteam |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|