Im wondering is it possible to change database name within the same connection?
The reason is that Im working on a report which needs to loop through all of the databases (more than 100) within the same connection (host, user, pass).
Currently I just manually add the database name before each table name in query. Like:
"SELECT * FROM `database_a`.`users` WHERE ...";
I made some searches on Google with "change database name" or "switch database..." but most of them are about creating different connections array in config/database.php but thats not my case (with more than 100 databases)
Thanks