Copy query from the database query builder

The ability to copy the query in the database query builder:

Have you tried the debug feature which was added recently:
image
?

If you choose this and output to browser, you may be able to copy what you want, but this feature doesn’t seem to work with paged queries (perhaps this is a bug).

There are already few features requests like this. So please do a search first before posting new one.

Also see why this can not be done: