Re: Simple query question - Mailing list pgsql-novice

From Tom Lane
Subject Re: Simple query question
Date
Msg-id 6631.1040666518@sss.pgh.pa.us
Whole thread Raw
In response to Re: Simple query question  ("Reshat Sabiq" <sabiq@purdue.edu>)
Responses Re: Simple query question
List pgsql-novice
"Reshat Sabiq" <sabiq@purdue.edu> writes:
> I believe Oracle requires singles for values too. That must be a
> standard.

It is.  SQL92 contains

         <double quote> ::= "

         <quote> ::= '

         <delimited identifier> ::=
              <double quote> <delimited identifier body> <double quote>

         <character string literal> ::=
              [ <introducer><character set specification> ]
              <quote> [ <character representation>... ] <quote>
                [ { <separator>... <quote> [ <character representation>... ] <quote> }... ]

I can't believe that MySQL gets such a basic element of SQL syntax wrong
--- perhaps the OP is mistaken?  If MySQL really does treat doublequote
as introducing a literal, how do they handle weird identifiers, like
names with embedded spaces?

            regards, tom lane

pgsql-novice by date:

Previous
From: "Devinder K Rajput"
Date:
Subject: performance question
Next
From: "Michael Paesold"
Date:
Subject: Re: Simple query question