1
I have a question in SQL, what I want is the code to pull the last information of this column and compare with a label of my site, but I do not know if the Last Insert Id is better or correct to use.
SELECT Km_Atual FROM Rota WHERE Km_Atual as LAST_INSERT_ID(Km_Atual)
What is the name of your Primary key field with auto increment?
– Roberto de Campos
My Primary key’s name is Id
– Guilherme Padovam