История страницы
...
Insert record Version 11 (Java)
Группа действийAction group: DtabasesDatabases
Описание действия
Добавляет запись (строку) в указанную таблицу БД.
Иконка действия
Параметры
Входные параметры
Контекст БД – Контекст подключения к выбранной базе данных.
Имя таблицы – Имя таблицы в БД.
Данные для вставки – Словарь данных для вставки в таблицу.
Список имен полей первичного ключа – Список имен полей первичного ключа, который будет получен в результате.
Выходные параметры
В результате получаем Список значений первичного ключа, сгенерированных в результате вставки данных для полей.
...
Description
The action adds the text (string) in the given DB table.
Action icon
Parameters
Input parameters
DB context – connection context to the selected database.
Table name – table name in DB.
Insert data – data in the form of a dictionary for insertion into a table.
List of primary key field names – list of primary key field names to be returned.
Output parameters
As a result we get the list of primary key values generated when inserting data for the field.
Settings
Property | Description | Type | Filling example | Mandatory field |
---|---|---|---|---|
Parameters | ||||
DB context | Connection context to the selected database | Robin.DbContext | Database context | Yes |
Table name | Table name | Robin.String | Yes | |
Insert data | Data in the form of a dictionary for insertion into a table | Robin.Dictionary | Yes | |
List of primary key field names | List of primary key field names to be returned | Robin.Collection | No | |
Results | ||||
List of primary key values | List of primary key values generated as a result of inserting data for the fields specified in the «List of primary key field names» parameter | Robin.Dictionary |
Особые условия использования
Отсутствуют.
Пример использования
Задача
Special conditions of use
None.
Example of use
Task
Connect to the database and insert data in the table (columns Подключиться к базе данных и добавить данные в таблицу (столбцы AGENT_NAME, WORKINGWORKING_AREA, COMMISSIONCOMMISSION, PHONEPHONE_NO и NO and COUNTRY) . ДанныеData: LucidaLucida, MumbaiMumbai, 00.13, 077077-12346674, USA.
...
Solution
Воспользоваться действиями Use the "Connect Standard Db", "InsertRecord" actions.
Реализация
Implementation
- Assemble a robot scheme consisting of actions:
- Set the parameters for "Connect Standard" action
- Собрать робота, состоящего из действий:
- Настроить параметры для действия "Стандартное подключение".
- Настроить параметры для действия Set the parameters for "Insert Record" action.
В поле In the "Insert data" указать данные в виде словаряfield use data in the form of dictionary.
В поле In the "List of primary key field names" заполнить следующим образомfield fill in the following manner: - Нажать на кнопку "Старт" в верхней панелиClick the "Start" button in the top panel.
Результат
Result
The program robot completed successfullyПрограммный робот отработал успешно.
Новая запись добавлена в таблицуNew text inserted in the table.