UiPath Documentation
activities
latest
false
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。
UiPath logo, featuring letters U and I in white

开发者活动

上次更新日期 2026年4月21日

批量更新

UiPath.Database.Activities.BulkUpdate

描述

在现有数据库表格中更新兼容的 DataTable。此活动也将更新所有未在列名称集合中用作主键的列。返回受影响的行数。

项目兼容性

Windows - 旧版 | Windows | 跨平台

Windows - 旧版 Windows 配置

设计器面板

  • Configure Connection... - Select an existing database connection or add a new one using the Connection Wizard.
  • Target table name - The target database table. This field supports only String variables.
  • Input data table - The DataTable object that is used in updating the table. The DataTable columns descriptions must match the columns from the database table and be a subset of them. This field supports only DataTable variables.
  • Column used for matching rows - The collection of column names used for row matching. This field supports only String[] variables.
属性面板
  • 常见
    • Continue on error - This field only supports Boolean values (True, False). The default value in this field is False. As a result, if this field is blank and an error is thrown, the execution of the project stops. If the value is set to True, the execution of the project continues regardless of any error.
    • DisplayName - The display name of the activity. This field supports only String variables.
  • 连接配置
    • Bulk/batch update - Check this box to enable the creation of a temp table using Bulk insert and to update using join between tables. Otherwise, bulk updates are issued in batch.
    • Connection string - The connection string used to establish a database connection. This field supports only String variables.
    • Existing connection - An already open database connection. If such a connection is provided, the ConnectionString and SecureConnectionString properties are ignored. This field supports only DatabaseConnection variables.
    • Provider name - The name of the database provider used to access the database. This field supports only String variables.
    • Secure connection string - The connection string used to establish a database connection as Secure String. This field supports only SecureString variables.
  • 输入
    • Column used for matching rows - The collection of column names used for row matching. This field supports only String[] variables.
    • Input data table - The DataTable object that is used in updating the table. The DataTable columns descriptions must match the columns from the database table and be a subset of them. This field supports only DataTable variables.
    • Target table name - The target database table. This field supports only String variables.
  • 其他
    • “私有”- 选中后将不再以“Verbose”级别记录变量和参数的值。
  • 输出
    • Affected rows count - The number of updated rows. This field supports only Int64 variables.

跨平台配置

  • Existing connection - An already opened database connection obtained from the Connect to Database activity.
  • Input data table - The DataTable variable that is used to update the database table. The DataTable columns' name and description must match the columns from the database table and be a subset of them.
  • Target table name - The target database table in which the data is to be updated.
  • Columns used for matching rows - The collection of column names used for row matching. These column names is be changed by the Bulk Update activity.
高级选项
  • 其他
    • Continue On Error - Specifies if the automation should continue even when the activity throws an error.
  • 输出
    • Affected rows count - The number of affected rows stored in an Int64 variable.
  • 描述
  • 项目兼容性
  • Windows - 旧版 Windows 配置
  • 跨平台配置

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新