输入banner图图片脚本导航/分类

将数据库中所有的表的列导入到指定文件的脚本

$TABLE" >> /tmp/test/txt/1.txt

mysql -uroot -p‘Admin123,.‘ -e "SELECT column_name FROM information_schema.columns WHERE table_schema=‘zwfw‘ AND table_name=‘$TABLE‘" >> /tmp/test/txt/1.txt

done

? ?

需要预先将所有的表名写入到tables文件中,一行一个,zwfw为被查询的数据库

? ?

将数据库包含的表的名字导入到tables文件的命令为

mysql -uroot -p‘Admin123,.‘ -e "SELECT table_name FROM information_schema.tables WHERE table_schema=‘zwfw‘ AND table_type=‘base table‘" >> /tmp/test/tables

? ?

zwfw为要查询的数据库,tables为指定的文件

? ?

将数据库中所有的表的列导入到指定文件的脚本

标签:ati   column   指定   表名   文件中   微软   微软雅黑   一个   数据