KETTLE single table synchronization, and TXT write EXCEL

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: 1, the file is automatically generated TXT or EXCEL (the needs of the telecommunications industry, majority), uploaded to a server; 2, both the data docking, the other party to provide database view
for the above, I would write down specifically how to achieve
1, automatically generate EXCEL file

1) as shown above, the input selection table (or view table data read), output EXCEL (EXCEL document is ready for output), connecting the two controls.

2) Configuration Database Connectivity (JDBC upper section with a presentation), may be connected by a subsequent jndi, implemented (as springmvc configuration) by configuration. Write sql statement query, click Preview to see if sql statement error, if there is no error, the preview screen will show the following

3) Double-click the EXCEL output into EXCEL configuration interface, as shown below

4) Click Browse, configured to generate the file path and file name, specify a date format can add a date to the file name, is ideal for scheduled file needs

5) elected to the contents page , is added after the representative file append operation, does not cover the source file

6) click for the field, the field is automatically filled in the previous step queries the table, is generated BigNumber type id, if desired can be modified to a digital type Integer, after all completed, click OK

7) click run

8) will automatically generate the following EXCEL file

2, TXT file automatically generated

as shown above, will be replaced excel txt, connected after shift, double click open configuration file name input

switch to content, the more common is to select separator used herein, the common | place,

field options obtaining field, select the appropriate field format, and click OK

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

Guess you like

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