Within my database I have a large number of tables which contain dates, expiry dates to be precise.
Currently I perform the following commands to remove any rows which are older than a date using:
DELETE FROM tablename WHERE DATE(datepoint) < '2019-03-12'
1) Is there a way I can instead search and delete from an entire database?
DELETE FROM database WHERE DATE(datepoint) < '2019-03-12'
2) Following this, is there a automated script I could which does this action on a daily basis? Rather than manually?
Kind Regards,
Shyam