in reply to Mysql and tail
MySQL allows the non-standard `LIMIT' keyword in your SQL statements. Look it up in the MySQL docs.
You could emulate `tail' by doing a SELECT with an ORDER BY clause and then LIMIT N at the end.