Assigning select statement output into a variable/file
Thanks All,
I got the solution for this using like
mysql -h $host_name -u $username -p$password -D $db -e "select * from spaces where SPACENAME='AAAT Rollout'" > /Users/Desktop/test11
change the permission of the file chmod 757 filename
|