does mysql record the last data file code example Example: mysql get last row SELECT fields FROM table ORDER BY id DESC LIMIT 1;