SELECT * FROM FOO WHERE ROWNUM <= 5 but I think TOP 5 returns the top 5 in 
the table? Probably need to do a sub-select to get the ordering in there. 
SELECT BLAH FROM (SELECT BLAH FROM FOO ORDER BY SORTORDER) WHERE ROWNUM <= 5
 Hopefully I did not mess that up, I am frying my brain right now over some 
LDAP stuff :)

 On 4/29/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: 
> 
> I am updating some code from SQL to Oracle. What is the eqivalent of this 
> T-SQL statement
> 
> SELECT TOP 5 * FROM foo:
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:205123
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to