kettle Started - table synchronization insert

In peacetime work which, encounter this situation, and very common. For example: Incremental Extraction (every two hours to extract as at the last recording time extraction)
First, the operating conditions:
the presence of three tables, the source table (t_student), synchronous log table (t_tbrz), into the table (t_target_student), structure as shown below in table
! [] (https://img2018.cnblogs.com/blog/1891116/201912/1891116-20191212111045735-1328796844.png)
student table
! [] (https://img2018.cnblogs.com/ blog / 1891116/201912 / 1891116-20191212111127267-1992517806.png)
synchronized log table
! [] (https://img2018.cnblogs.com/blog/1891116/201912/1891116-20191212111235686-389800331.png)
to be inserted into the student table
Two, Kettle operation
! [] (Https://img2018.cnblogs.com/blog/1891116/201912/1891116-20191212110719846-1637766037.png)
. 1) as shown above, requires four controls can be selected in the core object the main interface drag
! [] (https://img2018.cnblogs.com/blog/1891116/201912/1891116-20191212111355249-907856678.png)
2) shown above, in the sql sql statement written above, click on OK
! [] (https://img2018.cnblogs.com/blog/1891116/201912/1891116-20191212111659521-1503745525.png)
. 3) as shown above, the variable setting click, click acquisition field, click OK
! [] (HTTPS : //img2018.cnblogs.com/blog/1891116/201912/1891116-20191212113241351-552430937.png)
. 4) as shown above, click on "Get student input data sheet", written sql statement, click OK
[] (! https://img2018.cnblogs.com/blog/1891116/201912/1891116-20191212113805360-76345215.png)
. 5) shown above, click input table, the table into the input interface, click the Browse button, select the table to be inserted
 
! [] (https://img2018.cnblogs.com/blog/1891116/201912/1891116-20191212112052625-1874629737.png)
Prepare the test time record number created on December 12, this time to modify the sync log table below
! [ ] (https://img2018.cnblogs.com/blog/1891116/201912/1891116-20191212112235741-387340118.png)
! [] (https://img2018.cnblogs.com/blog/1891116/201912/1891116-20191212112305837-760475412.png)
Click Run
results are as follows, based only on a selected date after 2019/12/12 0:53:47 data created
! [] (https://img2018.cnblogs.com/blog/1891116/201912/1891116-20191212132659572-447453248.png)
Welcome to public concern number, learning database for more examples of program

Guess you like

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