How to add parameter values to pgadmin sql query?

后端 未结 2 1866
無奈伤痛
無奈伤痛 2021-02-12 14:19

In pgadmin3, I would like to use parameterized queries (to faster debugging, just copy & paste the query from my php file). But I haven\'t found an option to add the values

2条回答
  •  余生分开走
    2021-02-12 14:34

    In DBeaver you can use parameters in queries just like you can from code, so this will work:

    select * from accounts where id = :accountId
    

    When you run the query DBeaver will ask you for the value for :accountId and run the query.

提交回复
热议问题