Inserting data in mother/daughter tables - Cloud - 8.0

MySQL

Version
Cloud
8.0
Language
English
Product
Talend Big Data
Talend Big Data Platform
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Real-Time Big Data Platform
Module
Talend Studio
Content
Data Governance > Third-party systems > Database components (Integration) > MySQL components
Data Quality and Preparation > Third-party systems > Database components (Integration) > MySQL components
Design and Development > Third-party systems > Database components (Integration) > MySQL components
Last publication date
2024-02-29

The following Job is dedicated to advanced database users, who want to carry out multiple table insertions using a parent table id to feed a child table.

For more technologies supported by Talend, see Talend components.

As a prerequisite to this Job, follow the steps described below to create the relevant tables using an engine such as innodb:

  1. In a command line editor, connect to your Mysql server.

  2. Once connected to the relevant database, type in the following command to create the parent table:

    create table f1090_mum(id int not null auto_increment, name varchar(10), primary key(id)) engine=innodb;
  3. Then create the second table:

    create table f1090_baby (id_baby int not null, years int) engine=innodb;

Back in Talend Studio , the Job requires seven components including tMysqlConnection and tMysqlCommit.