How can I create a lifetime of a row so after a specific time say 2 weeks the row will automatically erase? Any info would be great.
Or you can add timestamp column and always select like this:
SELECT * FROM myTable WHERE timetampColumn>=date_sub(now(), interval 2 week);
It is better if you don't need to erase the data and you want to show only data from last 2 weeks.