SQL Server / MS Access 语法
SELECT TOP number|percent column_name(s)
FROM table_name;
FROM table_name;
实例
MySQL 语法
SELECT column_name(s)
FROM table_name
LIMIT number;
FROM table_name
LIMIT number;
实例
SELECT *
FROM Persons
LIMIT 5;
FROM Persons
LIMIT 5;
Oracle 语法
SELECT column_name(s)
FROM table_name
WHERE ROWNUM <= number;
FROM table_name
WHERE ROWNUM <= number;
实例
SELECT *
FROM Persons
WHERE ROWNUM <=5;
FROM Persons
WHERE ROWNUM <=5;