哈尔滨海月数据恢复,技术亚洲领先 设为首页加入收藏RSS订阅
中国区:哈尔滨(总部)郑州福建深圳沈阳合肥大连包头淄博上海广州
    南京杭州嘉兴武汉济南青岛新疆太原
亚太区:印度韩国泰国新加坡马来西亚澳大利亚
Windows
mysql批量生成外部文件的脚本

  DELIMITER $$

  DROP PROCEDURE IF EXISTS `travian_cc_s2_2`.`p_test`$$

  CREATE DEFINER=`postrock`@`58.246.137.218` PROCEDURE `p_test`()

  begin

  declare l_db_name varchar(300);

  declare l_file_name varchar(300);

  declare l_cur cursor for select schema_name from information_schema.schemata where schema_name like 'travian_%' and substring(schema_name,-1,2)=2;

  open l_cur;

  fetch l_cur into l_db_name;

  while (l_db_name is not null) do

  set @a=concat(l_db_name,'user_reg_inf','.txt');

  set @sql=concat('Select *,''0'' as PASSPORT_CODE,''Travian'' as GAME,''CN1'' as SERVER_NAME from (SELECT a.uid as uid,a.name as user_id,FROM_UNIXTIME( b.signup,''%Y-%m-%d %H:%i:%S'') as user_reg_time

  FROM ',l_db_name,'.s_details2 a LEFT JOIN ',l_db_name,'.s_details1 b

  ON a.uid=b.uid) a left join

  (SELECT uid,ip as reg_ip,min(zeit) FROM ',l_db_name,'.x_login

  WHERE zeit between (unix_timestamp(CURDATE())-86400) AND (unix_timestamp(CURDATE()))

  GROUP BY uid)

  b on a.uid=b.uid into outfile','"','/home/chenyl/',@a,'"');

  prepare stmt from @sql;

  execute stmt;

  deallocate prepare stmt;

  fetch l_cur into l_db_name;

  end while;

  close l_cur;

  end$$

  DELIMITER ;

 
客户服务 +more
上门服务
服务承诺
异地恢复
收费标准
付款方式
疑难解答
服务特色 +more
·免费检测
·免费提供3天备份
·专业工程师提供服务
·免费清洁送修的介质
·数据恢复前报价,客户确认后工程师开始数据恢复
·数据恢复不成功不收费
·与客户签订保密协议,对客户的数
 据严格保密,整个恢复过程不会对
 客户的原盘有任何的写操作,以确
 保原盘的数据完全

·免费参观恢复全过程

·工程师在线免费咨询

·专业工程师提供服务
服务器数据恢复 点击这里给我发消

息
数据库修复
点击这里给我发

消息
硬盘数据恢复
点击这里给我发消

息