海绵宝宝撒
在SQL Server数据库中,使用top关键字:SELECT TOP number|percent column_name(s) FROM table_name在MySQL数据库中,使用LIMIT关键字:SELECT column_name(s) FROM table_name LIMIT number例子:SELECT * FROM Persons LIMIT 1select bookName from book where price > 20 limit 1;limit 1;orlimit 0,1;在Oracle数据库中,使用ROWNUM关键字:SELECT column_name(s) FROM table_name WHERE ROWNUM <= number例子:SELECT * FROM Persons WHERE ROWNUM <= 1