As a backup:
Source: http://dotnet.org.za/thea/archive/2005/02/22/14715.aspx
SQL SELECT TOP N equivalent in ORACLE and MySQL
Something I needed today... I wish this was standarized, but it is not, so here are some examples:
SQL Server:
SELECT TOP 10 product, descr, email
FROM products
ORACLE:
SELECT product, descr, email
FROM products
WHERE ROWNUM <= 10
MySQL:
SELECT product, descr, email
FROM products
LIMIT 10
Wednesday, July 11, 2007
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment