学习
实践
活动
专区
工具
TVP
写文章
专栏首页 休辞醉倒 shell提取MySQL结果到变量中
2 0

海报分享

shell提取MySQL结果到变量中

host=`mysql -u$user -p$pass -D $ db -e "select host from user;"`