query to text

Is there a way to get a query output as text for debugging/logging purposes?
Was this page helpful?