Шпаргалка по SQL - ограничение SELECT в разных БД

Jul 28, 2008 13:35


Postgresql:
SELECT firstname, lastname, email
FROM contacts
LIMIT 10

MS SQL Server:
SELECT TOP 10 firstname, lastname, email
FROM contacts

ORACLE:
SELECT firstname, lastname, email
FROM contacts
WHERE ROWNUM <= 10

mySQL:
SELECT firstname, lastname, email
FROM contacts
LIMIT 10

sql

Next post
Up