bunny1
03-06-2007, 11:22 AM
I'm trying to get the value of the primary key for the last row in the database.
The Product_ID field is auto-incremented at every entry and i want to find out what the biggest Product_ID in the table is.
I'm using this sql code but it doesnt work
SELECT *
FROM 'Prods'
WHERE [ `Product_ID` = last];
any suggestions?
thanks
The Product_ID field is auto-incremented at every entry and i want to find out what the biggest Product_ID in the table is.
I'm using this sql code but it doesnt work
SELECT *
FROM 'Prods'
WHERE [ `Product_ID` = last];
any suggestions?
thanks