Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Salesforce
  3. Question
Salesforce

How to use SQL server foreach loop in SQL scripts?

Asked by Shivani Chavan Aug 23, 2021 1.8K views 1 answer
Share

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?


Your answer

1 Answer

More Salesforce discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Salesforce Blogs

Guides, tips and career advice on Salesforce from JanBask experts.