How to retrieve a query result to variable?

Top