How to add parameter values to pgadmin sql query?

后端 未结 2 922
一整个雨季
一整个雨季 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:37

    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.

提交回复
热议问题