mysql obtenez la dernière rangée
SELECT fields FROM table ORDER BY id DESC LIMIT 1;
Cute Crayfish
SELECT fields FROM table ORDER BY id DESC LIMIT 1;
SELECT * FROM my_table
WHERE YEAR(my_date) = YEAR(DATE_SUB(CURDATE(), INTERVAL 1 YEAR));
SELECT lastName,firstName FROM Customer
WHERE lastName LIKE "B%"
AND city = "Indianapolis"
AND (phone LIKE "%8%" OR fax LIKE "%8%")
//returns the last value
SELECT working_hours FROM employee ORDER BY name DESC LIMIT 1;