我已经试过了,但没有成功。

select top 5 * from [Table_Name]

当前回答

SELECT * FROM Table_Name LIMIT 5;

其他回答

select * from [Table_Name] limit 5

只替换你的表名[TABLE_NAME]并使用。

"select * from "+TABLE_NAME+ " LIMIT " +5;
select price from mobile_sales_details order by price desc limit 5

注意:我有mobile_sales_details表

语法

select column_name from table_name order by column_name desc limit size.  

如果你需要最低的价格,只需从订单中删除关键字desc

SELECT * FROM Table_Name LIMIT 5;
Select TableName.* from  TableName DESC LIMIT 5