Learn programming, development and design from scratch with Coding Collection. In our blog get many useful topics about HTML / HTML 5, CSS / CSS3, JavaScript, jQuery, Ajax, TypeScript, AngularJS, Node.js, React.js, PHP, MySQL, Python, Ruby on Rails,CodeIgniter any many more.
Search This Blog
Deleteing record from MySQL Database after 1 Week
Run this code at regular intervals, for example once per day:
Code: DELETE FROM moviesdone
WHERE datetimecol < NOW() - INTERVAL 7 DAY
Comments
Post a Comment