In PgAdmin III, when I copy value from returned grid and paste it into the query text, it appears there in double quotes. But to use it in query, in where clause for example, it has to be marked with apostrophe. So I have to replace quotes with apostrophe. It is rather weird for me that I always have to do so. Why it is designed in such strange way? This is a kind of stupid theoretical question, I do not expect any practical answers :)

有帮助吗?

解决方案

You can customize the quoting character, by following the following steps.

  1. On the PgAdmin-III main window, click on File and then Options
  2. Click on the Query Tool Tab
  3. Change the field called "Result copy quote character" to apostrophe (')

It should work, you may need to close and open PgAdmin-III

EDIT: For Mac OS X the option could be found in pgAdmin3 > Preferences > Query tool > Results grid

其他提示

For pgAdmin 4 go to File> Preferences> SQL Editor> Results Grid. You can change the Quotation mark to single quote or none.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top