I have a requirement of converting the result of a mysql query to an array with each column value. Below is the shell script query I have written to get the results