I have an SQL statement in which I would like to somehow place a variable for the table name, but don't quite know how.
SELECT * FROM MyTable_0205
The table name changes each month and I would rather not have to update the query each month (02=YY; 05=MM).
Can anyone give me some direction on how to make the table name a variable?
Thanks!
SELECT * FROM MyTable_0205
The table name changes each month and I would rather not have to update the query each month (02=YY; 05=MM).
Can anyone give me some direction on how to make the table name a variable?
Thanks!