Please help me solve Query Problem.
I want to see the last record from a table.
Right now I did it like this :
SELECT NoResep FROM TResep
ORDER BY NoResep DESC
LIMIT 0, 1
It works, but if there's more than 2000 records in that table and more than 2 tables, the program will work slower than usual.
Is there other query that I can use but faster and have the same result ?
I want to see the last record from a table.
Right now I did it like this :
SELECT NoResep FROM TResep
ORDER BY NoResep DESC
LIMIT 0, 1
It works, but if there's more than 2000 records in that table and more than 2 tables, the program will work slower than usual.
Is there other query that I can use but faster and have the same result ?