0
A
回答
1
您可以定义一个列表,并在其项目,以便重复:
//define a command
OracleCommand cmd1 = new OracleCommand("command", connection);
//set parameters if necessary
...
//do things
...
//declare a List of command
List<OracleCommand> commands = new List<OracleCommand>();
commands.Add(cmd1);
//using the list
foreach (OracleCommand command in commands)
{
//...execute command and stuff
}
相关问题
- 1. 在ListView中对组进行分组
- 2. 在ASP.Net中对行进行分组ListView
- 3. 在tsql中对行进行分组
- 4. 在Angularjs中对警报进行分组
- 5. 在Pandas Dataframe中对列进行分组
- 6. 在Select2中对结果进行分组
- 7. 在SQL中对结果进行分组
- 8. 在silverlight中对datagrid进行分组?
- 9. 在jsonArray中对jsonObjects进行分组Android
- 10. 在Sentry中对邮件进行分组
- 11. 在Mongoose中对查询进行分组
- 12. 在MySQL中对结果进行分组
- 13. 在Crystal Reports中对分组公式进行分组
- 14. 对Java类进行分组
- 15. 在Slick中进行分组
- 16. 如何在Linq中对组中的元素进行分组
- 17. Ember.js:对ArrayController进行分组/分区
- 18. sql“分组依据”,以组对同一对对应的行进行分组
- 19. SQL组 - 这对记录进行分组
- 20. 在sql server中对表中的行进行分组
- 21. 在.NET中对结构数组进行排序
- 22. 使用AngularJS对对象进行分组
- 23. 按日期对对象进行分组
- 24. 按最小值对行进行分组
- 25. 在Linq中使用VB .Net进行分组和最小/最大值NET
- 26. 在高图中对分组柱状图进行深入分析
- 27. 如何在sympy中对积分进行分组?
- 28. 如何在Rust中对“选项”分配进行分组?
- 29. 如何在Spark中按分区对键/值进行分组?
- 30. 如何在Swift中对物品(食物组)进行分组?