当前位置:Gxlcms > 数据库问题 > shell进行mysql统计

shell进行mysql统计

时间:2021-07-01 10:21:17 帮助过:2人阅读

 array=(江苏 浙江 新疆 宁夏 广东 福建 重庆 江西 吉林 湖南 山东 云南  上海 河北 黑龙江 北京 四川 河南 山西 湖北 辽宁 安徽 陕西 广西 贵州 内蒙古 天津 甘肃 海南 青海 西藏)

for i in ${array[@]};do echo $i":"; echo `mysql internet -h1.1.1.1 -uUSER -p12345 -e "select count(*) from TABLE where area like \\"$i\\";"`;done

 

shell进行mysql统计

标签:

人气教程排行