From f483b02041aaa5e1df055706296096ef00dac47f Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Wed, 11 Aug 2010 21:49:01 +0000 Subject: [PATCH] Properly lowercase identifiers, uppercase keywords, in doc examples --- doc/src/sgml/syntax.sgml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/src/sgml/syntax.sgml b/doc/src/sgml/syntax.sgml index a86fa26c30..88a4f8edb5 100644 --- a/doc/src/sgml/syntax.sgml +++ b/doc/src/sgml/syntax.sgml @@ -1,4 +1,4 @@ - + SQL Syntax @@ -56,9 +56,9 @@ For example, the following is (syntactically) valid SQL input: -SELECT * FROM MY_TABLE; -UPDATE MY_TABLE SET A = 5; -INSERT INTO MY_TABLE VALUES (3, 'hi there'); +SELECT * FROM my_table; +UPDATE my_table SET a = 5; +INSERT INTO my_table VALUES (3, 'hi there'); This is a sequence of three commands, one per line (although this is not required; more than one command can be on a line, and @@ -146,11 +146,11 @@ INSERT INTO MY_TABLE VALUES (3, 'hi there'); Key words and unquoted identifiers are case insensitive. Therefore: -UPDATE MY_TABLE SET A = 5; +UPDATE my_table SET a = 5; can equivalently be written as: -uPDaTE my_TabLE SeT a = 5; +UPDATE my_table SET a = 5; A convention often used is to write key words in upper case and names in lower case, e.g.: -- 2.40.0