mysql - Grab a certain amount of database entries from a table -


is there way grab exact amount of entries database example. example had table had id , total visits columns. wanted grab 20 entries , sort them total visits. how go this? know how sort whole table, able grab top twenty total visits , sort them. thanks

o , right using sqlite, know in future using mysql also. thanks

try with:

select * tablename order totalvisits limit 20 

Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -