As far as I know, you can use matching patterns if you use the shell of myslq but I have never tried to do a select query where I needed to use a matching pattern.
I do know that in Access and SQL Server you can do something like
[COLOR=#00008b]select[/COLOR] * [COLOR=#00008b]from[/COLOR] sys.tables [COLOR=#00008b]where[/COLOR] name [COLOR=#00008b]like[/COLOR] [COLOR=#800000]'%table%'[/COLOR]
so if you’re using any of these, then the answer will be yes.
On any other database, I would say that there has to be a way but right now I wouldn’t be able to know how.
Thanks Rudy. I was battling with it for a while, but yeah UNION sprung into my mind too. Why multiple tables for email? Well that’s the one million dollar question, I inherited it all.
SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME LIKE ‘a%’;
But further querying the result set of all tables in the above query is the tricky or not straight forward part without having to do as r937 suggested.