How to solve the data problem

Tools: Excel+Putty+WinSCP+DB2

1 Operations of Excel Funtion: find、len、mid、countif、vlookup

   sheet1

   

   E2=FIND("</sex>",D2,1)=FIND("<sex>",D2,1)+LEN("<sex>")

   F2=FIND("</sex>",D2,1)

   G2=MID(D2,E2,F2-E2)

   H2=COUNTIF(G:G,G2)

   sheet2

   

  =VLOOKUP(A2,Sheet1!B:G,6,FALSE)

2 save the excel as 1.csv file. CSV file is splited by commar.

    

3 upload the csv file to mdm server.

4 create a new tempotary table named 1_temp,including three fields:name,phone and age.

4 run the follwing command to connect to DB2 database and import the csv to database;

   db2;

   connect to MDMDB;

   import from 1.csv of del insert into 1_temp;

   export to 2.csv of del select * from 1_temp

5 query the data what we need from the multiple table.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值