QUOR
Keeps track of your SQL Queries and Database Connections.
... are supported. There are different modes for parameters. This may be useful for testing SQL statements originally embedded in source code. Besides queries also connection information is stored and it is also tracked which query was executed or can be executed with which database connection. For organization purposes queries and database connections can also be tagged manually.
It is also possible to use the command line to execute and export queries.