Jun 01, 2020 08:46 AM|Yang Shen|LINK
The description is not that clear, how do you interact with the database?
If you just want to change the target table to query when the conditions are different, then there will be no need to connect to your db multiple times.
Connect to db then change the query filters in switch statement.
Would you please share more detailed code so that we can understand current requirement?
Thanks for your understanding.