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

mod rewrite - Doing external redirect. .htaccess NS flag not working. How to achieve similar results? -

mysql - How to insert just year and month into date field? -