Is it possible to have a dynamic table name within a query or a table
name that is a variable? This does not work but gives an example:
SELECT * FROM concat('table', 'name')
- OR -
SET @table = 'a';
SELCT * FROM @table
Of course the query can be constructed dynamically but does not exactly
fit the needs. The situation is very complicated and would just be
confusing to discuss here so please do not offer suggestions on how to
construct the query programically as that will not work for this
situation.
Thanks