如何获得SqLite的前5名logging?
我试过这个没用的
select top 5 * from [Table_Name]
SELECT * FROM Table_Name LIMIT 5;
TOP和方括号特定于Transact-SQL。 在ANSI SQL中,使用LIMIT和反引号(`)。
select * from `Table_Name` LIMIT 5;
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