How to assign sql query output to a variable in unix. Can you do something like this: The follow...

How to assign sql query output to a variable in unix.  Can you do something like this: The follow...How to assign sql query output to a variable in unix.  Can you do something like this: The follow...