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
Post a Comment