How to select all entries of a MySQL table except the last one? -


how select entries last 1 in mysql? tried following statement:

select * table name order id select id lot_master `id auto increment` order id decs limit 1 

how can achieve this?

select name shopping_cart id<>(select max(id) shopping_cart); 

Comments

Popular posts from this blog

php - render data via PDO::FETCH_FUNC vs loop -

c# - Avoiding duplicate methods for Task and Task<T> -

javascript - Which segment of a polyline was clicked? -