php - How to return the top 6 rows from a MySql databse -


I search for a SQL statement that will return the latest 6 items that were added to the table based on their ID. So if the ID is going to start with ID 1 and goes to 10, then I need a statement which will return 6 rows in the 5 to 10 with the ID.

Like

  SELECT *> 

between you only ORDER and BY

  Need to add a location I  

is the correct query


Comments

Popular posts from this blog

Member with no value in F# -

java - Joda Time Interval Not returning what I expect -

c# - Showing a SelectedItem's Property -