shell查询mysql语句循环