
Error al crear: create table tmp.`7211402326393` select '1234567890' as id_pack,
					clientes.c_id ,
				 	clientes.c_descripcion,
				 	clientes.c_contacto,
				 	clientes.c_nom_comercial,
				 	clientes.c_direccion,
				 	clientes.c_telefono,
				 	clientes.c_fax,
				 	clientes.c_correo,
				 	clientes.c_web,
				 	clientes.c_idfiscal,
				 	clientes.c_dias_credito	,
				 	clientes.c_limite_credito	,
				 	clientes.c_termino,
				 	clientes.c_activo,
				 	clientes.c_notas,
				 	clientes.c_vendedor,
				 	clientes.pa_id,
				 	clientes.ciu_id	,
				 	clientes.nom_fiscal_id,
				 	clientes.id_contribuyente,
				 	clientes.c_creacion,
				 	clientes.c_modificacion	,
				 	clientes.c_u_id_crea,
				 	clientes.c_u_id_mod,
				 	clientes.c_envia_email,
				 	clientes.c_credito,
				 	clientes.c_desc,
				 	clientes.suc_id,
				 	clientes.c_precio,
				 	clientes.cat_id,
				 	clientes.c_apart,
				 	clientes.user,
				 	clientes.pass,
				 	clientes.c_observ,
				 	clientes.c_pagcxc,
				 	clientes.c_pagacxc,
				 	clientes.c_nccxc,
				 	clientes.c_ndcxc,
				 	clientes.c_factcxc,
				 	clientes.c_usuar_trans	,
				 	clientes.id_autoinc,
				 	clientes.c_contacto2,
				 	clientes.c_contacto3,
				 	clientes.c_contacto4,
				 	clientes.c_exclusiv_cont,
				 	clientes.c_contacto5,
				 	clientes.c_contacto6,
				 	clientes.c_contacto7,
				 	clientes.c_contacto8,
				 	clientes.c_contacto9,
				 	clientes.c_contacto10,
				 	clientes.c_ced1,
				 	clientes.c_ced2,
				 	clientes.c_ced3,
				 	clientes.c_ced4,
				 	clientes.c_ced5,
				 	clientes.c_ced6,
				 	clientes.c_ced7,
				 	clientes.c_ced8,
				 	clientes.c_ced9,
				 	clientes.c_ced10,
				 	clientes.c_telef1,
				 	clientes.c_telef2,
				 	clientes.c_telef3,
				 	clientes.c_telef4,
				 	clientes.c_telef5,
				 	clientes.c_telef6,
				 	clientes.c_telef7,
				 	clientes.c_telef8,
				 	clientes.c_telef9,
				 	clientes.c_telef10,
				 	clientes.c_web1,
				 	clientes.c_web2,
				 	clientes.c_web3,
				 	clientes.c_web4,
				 	clientes.c_web5,
				 	clientes.c_web6,
				 	clientes.c_web7,
				 	clientes.c_web8,
				 	clientes.c_web9,
				 	clientes.c_web10,
				 	clientes.c_ul_compra	,
				 	clientes.c_recarg_mora,
				 	clientes.w_prod,
				 	clientes.w_prom,
				 	clientes.w_est_c,
				 	clientes.w_opc,
				 	clientes.w_fisc	,
				 	clientes.cor_inf	,
				 	clientes.otros,
				 	clientes.c_prospect	,
				 	clientes.wadmin,
				 	clientes.c_contacto_fech_cumple1,
				 	clientes.c_contacto_fech_cumple2,
				 	clientes.c_contacto_fech_cumple3,
				 	clientes.c_contacto_fech_cumple4,
				 	clientes.c_contacto_fech_cumple5,
				 	clientes.c_contacto_fech_cumple6,
				 	clientes.c_contacto_fech_cumple7,
				 	clientes.c_contacto_fech_cumple8,
				 	clientes.c_contacto_fech_cumple9,
				 	clientes.c_contacto_fech_cumple10,
				 	clientes.c_contacto_img1,
				 	clientes.c_contacto_img2,
				 	clientes.c_contacto_img3,
				 	clientes.c_contacto_img4,
				 	clientes.c_contacto_img5,
				 	clientes.c_contacto_img6,
				 	clientes.c_contacto_img7,
				 	clientes.c_contacto_img8,
				 	clientes.c_contacto_img9,
				 	clientes.c_contacto_img10,
				 	clientes.c_hist_vta_cont,
				 	clientes.SyncProcesing,
				 	clientes.UserModify,
				 	clientes.UserOption,
				 	pais.pa_descripcion,
				 	pais.pa_activo,
				 	pais.etiq_id,
				 	pais.cod_pais,
				 	ciudad.des_ciudad,
				 	ciudad.ciu_activo,
				 	ciudad.det_ciudad,
				 	ciudad.pr_ubicacion,

					 clientes.c_ref2,
					 clientes.c_ref3,
					 clientes.c_club,
					 clientes.cliente_pre_pago,
					 clientes.c_acumpuntos,
					 clientes.c_afiliado

				  from	.clientes   left outer join
			   	.pais on clientes.pa_id=pais.pa_id

               left outer join
				.ciudad on clientes.ciu_id=ciudad.ciu_id limit 0 <br>Error insert: insert into .clientes ( c_id,c_descripcion,c_contacto,c_nom_comercial,c_direccion,c_telefono,c_fax,c_correo,c_web,c_idfiscal,c_dias_credito,c_limite_credito,c_termino,c_activo,c_notas,c_vendedor,pa_id,ciu_id,nom_fiscal_id,id_contribuyente,c_creacion,c_modificacion,c_u_id_crea,c_u_id_mod,c_envia_email,c_credito,c_desc,suc_id,c_precio,cat_id,c_apart,user,pass,c_observ,c_pagcxc,c_pagacxc,c_nccxc,c_ndcxc,c_factcxc,c_usuar_trans,c_contacto2,c_contacto3,c_contacto4,c_exclusiv_cont,c_contacto5,c_contacto6,c_contacto7,c_contacto8,c_contacto9,c_contacto10,c_ced1,c_ced2,c_ced3,c_ced4,c_ced5,c_ced6,c_ced7,c_ced8,c_ced9,c_ced10,c_telef1,c_telef2,c_telef3,c_telef4,c_telef5,c_telef6,c_telef7,c_telef8,c_telef9,c_telef10,c_web1,c_web2,c_web3,c_web4,c_web5,c_web6,c_web7,c_web8,c_web9,c_web10,c_ul_compra,c_recarg_mora,w_prod,w_prom,w_est_c,w_opc,w_fisc,cor_inf,otros,c_prospect,wadmin,c_contacto_fech_cumple1,c_contacto_fech_cumple2,c_contacto_fech_cumple3,c_contacto_fech_cumple4,c_contacto_fech_cumple5,c_contacto_fech_cumple6,c_contacto_fech_cumple7,c_contacto_fech_cumple8,c_contacto_fech_cumple9,c_contacto_fech_cumple10,c_contacto_img1,c_contacto_img2,c_contacto_img3,c_contacto_img4,c_contacto_img5,c_contacto_img6,c_contacto_img7,c_contacto_img8,c_contacto_img9,c_contacto_img10,c_hist_vta_cont,SyncProcesing,UserModify,UserOption,c_ref2,c_ref3,c_club,cliente_pre_pago,c_acumpuntos,c_afiliado) select c_id,c_descripcion,c_contacto,c_nom_comercial,c_direccion,c_telefono,c_fax,c_correo,c_web,c_idfiscal,c_dias_credito,c_limite_credito,c_termino,c_activo,c_notas,c_vendedor,pa_id,ciu_id,nom_fiscal_id,id_contribuyente,c_creacion,c_modificacion,c_u_id_crea,c_u_id_mod,c_envia_email,c_credito,c_desc,suc_id,c_precio,cat_id,c_apart,user,pass,c_observ,c_pagcxc,c_pagacxc,c_nccxc,c_ndcxc,c_factcxc,c_usuar_trans,c_contacto2,c_contacto3,c_contacto4,c_exclusiv_cont,c_contacto5,c_contacto6,c_contacto7,c_contacto8,c_contacto9,c_contacto10,c_ced1,c_ced2,c_ced3,c_ced4,c_ced5,c_ced6,c_ced7,c_ced8,c_ced9,c_ced10,c_telef1,c_telef2,c_telef3,c_telef4,c_telef5,c_telef6,c_telef7,c_telef8,c_telef9,c_telef10,c_web1,c_web2,c_web3,c_web4,c_web5,c_web6,c_web7,c_web8,c_web9,c_web10,c_ul_compra,c_recarg_mora,w_prod,w_prom,w_est_c,w_opc,w_fisc,cor_inf,otros,c_prospect,wadmin,c_contacto_fech_cumple1,c_contacto_fech_cumple2,c_contacto_fech_cumple3,c_contacto_fech_cumple4,c_contacto_fech_cumple5,c_contacto_fech_cumple6,c_contacto_fech_cumple7,c_contacto_fech_cumple8,c_contacto_fech_cumple9,c_contacto_fech_cumple10,c_contacto_img1,c_contacto_img2,c_contacto_img3,c_contacto_img4,c_contacto_img5,c_contacto_img6,c_contacto_img7,c_contacto_img8,c_contacto_img9,c_contacto_img10,c_hist_vta_cont,SyncProcesing,UserModify,UserOption,c_ref2,c_ref3,c_club,cliente_pre_pago,c_acumpuntos,c_afiliado from tmp.7211402326393 on duplicate  key update 
    c_descripcion=values(c_descripcion),
   c_contacto=values(c_contacto),
   c_nom_comercial=values(c_nom_comercial),
   c_direccion=values(c_direccion),
   c_telefono=values(c_telefono),
   c_fax=values(c_fax),
   c_correo=values(c_correo),
   c_web=values(c_web),
   c_idfiscal=values(c_idfiscal),
   c_dias_credito=values(c_dias_credito),
   c_limite_credito=values(c_limite_credito),
   c_termino=values(c_termino),
   c_activo=values(c_activo),
   c_notas=values(c_notas),
   c_vendedor=values(c_vendedor),
   pa_id=values(pa_id),
   ciu_id=values(ciu_id),
   nom_fiscal_id=values(nom_fiscal_id),
   id_contribuyente=values(id_contribuyente),
   c_creacion=values(c_creacion),
   c_modificacion=values(c_modificacion),
   c_u_id_crea=values(c_u_id_crea),
   c_u_id_mod=values(c_u_id_mod),
   c_envia_email=values(c_envia_email),
   c_credito=values(c_credito),
   c_desc=values(c_desc),
   suc_id=values(suc_id),
   c_precio=values(c_precio),
   cat_id=values(cat_id),
   c_apart=values(c_apart),
   user=values(user),
   pass=values(pass),
   c_observ=values(c_observ),
   c_pagcxc=values(c_pagcxc),
   c_pagacxc=values(c_pagacxc),
   c_nccxc=values(c_nccxc),
   c_ndcxc=values(c_ndcxc),
   c_factcxc=values(c_factcxc),
   c_usuar_trans=values(c_usuar_trans),
   c_exclusiv_cont=values(c_exclusiv_cont),
   c_ced1=values(c_ced1),
   c_telef1=values(c_telef1),
   c_web1=values(c_web1),
   c_ul_compra=values(c_ul_compra),
   c_recarg_mora=values(c_recarg_mora),
   w_prod=values(w_prod),
   w_prom=values(w_prom),
   w_est_c=values(w_est_c),
   w_opc=values(w_opc),
   w_fisc=values(w_fisc),
   cor_inf=values(cor_inf),
   otros=values(otros),
   c_prospect=values(c_prospect),
   wadmin=values(wadmin),
   c_contacto_fech_cumple1=values(c_contacto_fech_cumple1),
   c_contacto_img1=values(c_contacto_img1),
   c_hist_vta_cont=values(c_hist_vta_cont),
   c_ref2=values(c_ref2),
   c_ref3=values(c_ref3),
   c_club=values(c_club),
   cliente_pre_pago=values(cliente_pre_pago),
   c_acumpuntos=values(c_acumpuntos),
   c_afiliado=values(c_afiliado)<br>Error: update .estaciones set e_ftp_rclie='' where suc_id='' and e_id='' <br>{"estado":"OK","mensaje":"Oper. enviadas en total:  Procesados: 0"}