SQL Server:
SELECT TOP 10 * FROM [TableName]
Oracle:
SELECT * FROM
SELECT * FROM [TableName] LIMIT 0,10 (First 10 rows start from row 1)
SELECT * FROM [TableName] LITMIT 5, 10 (First 10 rows start from row 6)
Thursday, November 22, 2007
Limit in select query
at 9:34 PM
Labels: MySQL, Oracle, Oracle Query, PL/SQL, SQL Server, SQL Server 2000, SQL Server 2005
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment