When To Use Quotes

Поиск
Список
Период
Сортировка
Искать
От
Carlos Mennens
Тема
When To Use Quotes
Дата
Msg-id
CAAQLLO5u5Rr5txn7Ve4a90_gtxq8pzzej44+1JgdX5e7ukPXfw@mail.gmail.com
Список
Дерево обсуждения
When To Use Quotes Carlos Mennens <carlos.mennens@gmail.com>
Re: When To Use Quotes "Plugge, Joe R." <JRPlugge@west.com>
I'm trying to understand when in SELECT statements should and should I
not use single quotes to filter my results. For example:

SELECT * FROM people
WHERE fname = 'James';

or

SELECT * FROM price
WHERE msrb
BETWEEN 50 AND 100;

Now is it correct to say that in PostgreSQL or ANSI SQL in general I
should use 'single quotes' when the condition is strictly a numerical
data type value and everything else should be inside 'single quotes'?

В списке pgsql-sql по дате отправления
От: Samuel Gendler
Дата:
От: Plugge, Joe R.
Дата:
Сообщение: Re: When To Use Quotes
FAQ