1 #!/bin/bash
2 #查询
3 echo -e 
4 for i in `cat id.txt`
5 do
6 A=`mysql -h10 -uw -p2012 -Ne "select Id,Name,User_Logindate from info where Id=$i"`;
7 B=`mysql -h10 -uw -p2012 -Ne "select ifnull(sum( Amount),0) from Info where Date between '2014-05-21'
and '2014-05-22' and Id=$i and Res=1"`
8 echo -e "$A\t\t\t\t$B\t" >> tmp.xls;
9 done

相关文章:

  • 2021-06-27
  • 2021-09-07
  • 2022-12-23
  • 2021-12-05
  • 2021-12-09
  • 2021-08-03
  • 2022-02-08
  • 2022-01-13
猜你喜欢
  • 2021-06-08
  • 2021-07-19
  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
  • 2022-01-16
  • 2021-06-08
相关资源
相似解决方案