How to test my ad-hoc SQL with parameters in Postgres query window

前端 未结 3 1929
感情败类
感情败类 2020-12-19 03:57

In Microsoft SQL Server, to test something like this in the query window:

select * from Users where LastName = @lastname

I can add this bef

3条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-19 04:31

    I config postgres to log all the commands, and copy the command from the log file, so all the parameters are already replaced with the value, and test the command in the query window.

    May not be the best approach, but it is easy and works for me

提交回复
热议问题