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

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

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

The canvas has been tainted by cross-origin data in chrome only -