When To Use Quotes - Mailing list pgsql-sql

From Carlos Mennens
Subject When To Use Quotes
Date
Msg-id CAAQLLO5u5Rr5txn7Ve4a90_gtxq8pzzej44+1JgdX5e7ukPXfw@mail.gmail.com
Whole thread Raw
Responses Re: When To Use Quotes  ("Plugge, Joe R." <JRPlugge@west.com>)
List pgsql-sql
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 by date:

Previous
From: Samuel Gendler
Date:
Subject: Fwd: i want small information regarding postgres
Next
From: "Plugge, Joe R."
Date:
Subject: Re: When To Use Quotes