If you are like me and you are in Oracle, PostgreSQL, SQL Server, MySQL and Firebird. day in and day out its syntax for either of these RDMS can be inconsistant. I need a reference. Syntax to limit the results on a simple select vary among the RDBM's listed above.
So, here's a hint. Assuming a table of USERS, with fields userid, username, email.
ORACLE:
SELECT userid, username, email
FROM users
WHERE ROWNUM <= 10
POSTGRESQL:
SELECT userid, username, email
FROM users
LIMIT 10
SQLServer:
SELECT Top 10 userid, username, email
FROM users
MYSQL:
SELECT userid, username, email
FROM users
LIMIT 10
FIREBIRD:
SELECT FIRST 10 userid, username, email
FROM users
tags: oracle sqlserver postgresql mysql firebird select limit records sql
links: digg this del.icio.us technorati reddit