Inserting data into the new PostgreSQL table - 6.5

SCDELT

author
Talend Documentation Team
EnrichVersion
6.5
EnrichProdName
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 Open Studio for Big Data
Talend Open Studio for Data Integration
Talend Open Studio for ESB
Talend Open Studio for MDM
Talend Real-Time Big Data Platform
task
Data Governance > Third-party systems > Business Intelligence components > SCDELT components
Data Quality and Preparation > Third-party systems > Business Intelligence components > SCDELT components
Design and Development > Third-party systems > Business Intelligence components > SCDELT components
EnrichPlatform
Talend Studio

Procedure

  1. Double-click the first tFixedFlowInput component to open its Basic settings view.
  2. Click the [...] button next to Edit schema and in the pop-up dialog box, define the schema by adding four columns: id of Integer type as the primary key, name and role of String type, and salary of Double type.
  3. Click OK to save the schema changes. In the pop-up dialog box, click Yes to propagate the schema to the next component.
  4. Select Use Inline Content in the Mode area. Then in the Content field displayed, enter the following employee data to be inserted.
    1;Mark Smith;tester;11000.00
    2;Thomas Johnson;developer;12000.00
    3;Teddy Brown;tester;13000.00
  5. Double-click the first tPostgreSQLOutput component to open its Basic settings view.
  6. Select the Use an existing connection check box and from the Component List drop-down list displayed, and then select the connection component to reuse the connection created by it, tPostgreSQLConnection_1 in this example.
  7. In the Table field, enter the name of the table into which the employee data will be written, employee in this example.
  8. In the Action on table drop-down list, select Default.
  9. In the Action on data drop-down list, select Insert to insert the employee data transferred from the first tFixedFlowInput component.
  10. Click the [...] button next to Edit schema to check whether the schema of tPostgreSQLOutput is the same as the schema of tFixedFlowInput.