SyntaxFix
Write A Post
Hire A Developer
Questions
If you want to use a single value in bash use:
companyid=$(mysql --user=$Username --password=$Password --database=$Database -s --execute="select CompanyID from mytable limit 1;"|cut -f1) echo "$companyid"