📜  bash mysql 查询计数只获取数字 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:40.140000             🧑  作者: Mango

代码示例1
mysql -h {host} -u {user} -p{password}  -e "SELECT COUNT(DISTINCT table_name) FROM information_schema.columns WHERE table_schema = '{dbname}'" | grep -iv "count"