About this question
In Powershell I use foreach to run a function through a list of targets.
I was wondering that if there is anything similar to foreach in SQL, so I can run the same query through multiple DBs I chose and save the results to one CSV file?