I recently came across this question which is about the correct way to use the desktop SQL client DBeaver. My first instinct was to close the question as off topic - especially since it seems the OP simply forgot to add a semicolon between statements. The OP then clarified that they believe it's a specifically a problem related to DBeaver - which I now agree with since they need to select the DB in the top menu bar of that application for their export to work.
This doesn't really seem like a programming question to me and I don't see how it could be on topic here - however, given that the tag exists and has garnered hundreds of questions, I'm in doubt.