Lets say I have a query
select * from orders where company=:company
And I run it by setting parameter in code.
All well and good, but what if I want to run this query in my sql tool (pgadmin for example) but I do not want to manually replace parameters with actual values (the real query has 5 paramters and is very big).
Is there a tool or a way to run the query and set parameters values somewhere so they would be used in query as if it was run from code?
If it is relevant I use C# and NHibernate (but in this case I use native SQL query) and Postgresql.
EDIT: Requirement: SQL query text should not be changed in any way, paramater should be specified with ':' character not any other way. And it should not be a command line tool (but something with visual UI).