摘要:
怎么用shell读取mysql的返回值?host=`mysql -u$user -p$pass -D $db -e "select host from user;&quo...
图片来源:网络
怎么用shell读取mysql的返回值?
host=`mysql -u$user -p$pass -D $db -e "select host from user;"`orhost=$(mysql -u$user -p$pass -D $db -e "select host from user;")