KETTLE two kinds of multi-table associated with the implementation of a table synchronization

The following operations are developed in version 5.0.1, and the remaining version can be automatically compared to
the usual work which, encounter this situation, and very common. For example: read each other's multiple views or tables, write a table in the target database, involving the simultaneous multi-table.
Multi-table synchronization can be achieved in two ways, then I will give you realize introduced under way:
One way: After multi-table associated with the query, write a table
1, according to the data of the two tables, table students tables and table classes, written to the target table: table of class



2, input selection table, double-click the table input, write a column in sql associated sql statement, click on the preview, check out the relevant data, click OK


3, the core object select table output, shift, mouse input and table output connection table, double-click the output table, select the database connection, the number of submissions and select the target table click OK

4, click the run button, the write succeeds


5, authentication is successful, the data It has written to the relevant table

Second way:
As shown, a need to create a table input (Student), Table 2 Input (class), the record set is connected (connected student and class table), table output (write target table)

1, an input table, acquires corresponding write field

2, table 2 inputs, acquired class corresponding write field

3, table 1 and input 2 inputs, while holding down the shift control connector disconnected recordsets, click connection control record set, and an input connector fields 1 field 2 is connected, the connection type selected inner (knowledge database)

4, and finally connected to the output table, select the database fields (table structure must be the same and the destination table), click OK

5, double-click operation is finished, the database verified by


链接:https://pan.baidu.com/s/17kzNyxHT0qaWFairamEcbQ 提取码:e7ei
欢迎关注公众号,学习数据库,获取更多资料

Guess you like

Origin www.cnblogs.com/dalaba/p/12018581.html