Hi people,
I’m working with MySQL and I want to select all rows of the table except the last one. In ANSI SQL dialect I would use the following query:
SELECT *
FROM table
WHERE row_id != (SELECT MAX(row_id)
FROM table)
But I have to rewrite it for MySQL. Can someone plz help me?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.