DataX-MySql to SQL server

{
    "job": {
        "setting": {
            "speed": {
                "channel": 5
            }        },
        "content": [
            {
                "reader": {
                    "name": "mysqlreader",
                    "parameter": {
                        "username": "xxx",
                        "passwordsss": "xxxx",
                        "where": "",
                        "connection": [
                            {
                                "querySql": [
                                "
                               select id, created, deleted, updated, version, bill_ref_id, entry, qty,
       material_ref_id, source_bill_ref_id, source_line_entry, source_line_id,
       upstream_bill_ref_id, upstream_line_entry, upstream_line_id, ext_ref_id,
       cx_material_ref_id, orig_qty, unit_ref_id, currency, price, tax_rate,
       assist_unit_ref_id, assist_qty, cx_bill_ref_id, orig_tax_amt, orig_tax_price,
       line_discount, invoice_material_ref_id, invoice_material_type, invoice_material_name,
       serial, miaoder_unit, union_operate, proportion, service_fee_rate
		from sales_invoice_line 
        where created >= '2022-09-01';
								"
                                ],
                                "jdbcUrl": [
                                    "jdbc:mysql://12.13.13.34/gods?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai&useSSL=false"
                                ]
                            }
                        ]
                    }
                },
                "writer": {
                    "name": "sqlserverwriter",
                    "parameter": {
                        "username": "xxx",
                        "passwordsss": "xxxx",
                        "column": [
                           "id",                      
							"created",                 
							"deleted",                 
							"updated",                 
							"version",                 
							"bill_ref_id",             
							"entry",                   
							"qty",                     
							"material_ref_id",         
							"source_bill_ref_id",      
							"source_line_entry",       
							"source_line_id",          
							"upstream_bill_ref_id",    
							"upstream_line_entry",     
							"upstream_line_id",        
							"ext_ref_id",              
							"cx_material_ref_id",      
							"orig_qty",                
							"unit_ref_id",             
							"currency",                
							"price",                   
							"tax_rate",                
							"assist_unit_ref_id",      
							"assist_qty",              
							"cx_bill_ref_id",          
							"orig_tax_amt",            
							"orig_tax_price",          
							"line_discount",           
							"invoice_material_ref_id", 
							"invoice_material_type",   
							"invoice_material_name",   
							"serial",                  
							"miaoder_unit",            
							"union_operate",           
							"proportion",              
							"service_fee_rate"        
                        ],
                        "connection": [
                            {
                                "table": [
                                    "zt_sales_invoice_line"
                                ],
                                "jdbcUrl": "jdbc:sqlserver://12.136.36.33:1433;DatabaseName=exds"
                            }
                        ]
                    }
                }
            }
        ]
    }
}
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值