You don't need to use the clipboard, you can export directly the whole resultset (not just what you see) to a file :
- Execute your query
- Right click any anywhere in the results
- click "Export resultset..." to open the export wizard
- Choose the format you want (CSV according to your question)
- Review the settings in the next panes when clicking "Next". (No need to change anything in my case)
- Set the folder where the file will be created, and "Finish"
The export runs in the background, a popup will appear when it's done.
In newer versions of DBeaver you can just :
- right click the SQL of the query you want to export
- Execute > Export from query
- Choose the format you want (CSV according to your question)
- Review the settings in the next panes when clicking "Next". (No need to change anything in my case)
- Set the folder where the file will be created, and "Finish"
The export runs in the background, a popup will appear when it's done.
Compared to the previous way of doing exports, this saves you step 1 (executing the query) which can be handy with time/resource intensive queries.