Check out example codes for "bash mysql query count get only number". It will help you in understanding the concepts better.

Code Example 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"

Learn ReactJs, React Native from akashmittal.com