I am trying to delete data from multiple tables using one code. The two connecting factors for all these tables is that the start and ending of the names are the same so as an example, table 1 is BRIGHTEXT, BRITGEXT. The second factor is that the dates are the same in both tables. I want to delete where table name is like BRI%EXT and the startdate > date
I have used the
delete from tablename where date >
but this would only work for one table. How can I make it work for multiple tables?