for table in `mysql -uuser -p‘pwd‘ database -e "show tables"|sed ‘1d‘`;
do
mysql -uroot -p‘pwd‘ database -N -s -e "desc ${table};"|grep "your Field" && echo ${table} || continue;
done
本文出自 “WoSec” 博客,谢绝转载!
原文地址:http://pathyon.blog.51cto.com/9465112/1636628