I have seen this done before but I can’t remember where I saw it.
What I need to do is have the table name as a field in a query.
Say I have a table called users, how would I add the table name ‘users’ as a column.
Like:
SELECT username, password, **table** as mytable FROM users
It may look obvious, but did you consider the following?