Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why are values copied from returned grid marked with quotes?

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 :)

like image 268
Alex Avatar asked Jul 03 '13 09:07

Alex


People also ask

What does it mean when you put quotes around a word?

Quotation marks around single words can occasionally be used for emphasis, but only when quoting a word or term someone else used. Usually, this implies that the author doesn't agree with the use of the term. He said he was “working”; it looked to me like he was procrastinating.

Why do we use quotations in writing?

To reinforce your ideas: The main reason to quote material in your speech is to reinforce your words. A quotation offers a second voice that echoes your thoughts, beliefs, and claims. They said it better: Quotations provide a better way of saying things. They give you a more concise, memorable phrasing for an idea.

How do you put quotation marks in a variable in Python?

Use a formatted string literal to add double quotes around a variable in Python, e.g. result = f'"{my_var}"' . Formatted string literals let us include variables inside of a string by prefixing the string with f .


1 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

like image 158
Wize Avatar answered Nov 07 '22 08:11

Wize