Is it possible to generate a CSV from a virtual column?

I’m using a virtual to generate a PDF, however can I do the same for a csv? If so, do I use a select?
Thanks!