DBeaver does a good job of this and works with most databases. I would not use MySQL Workbench or PGAAdmin now.
This might be a good implementation but is it not easier to use something that can connect to your database than having to copy and paste chunks of SQL?