Properly lowercase identifiers, uppercase keywords, in doc examples
This commit is contained in:
parent
c9ae257e23
commit
a4a3ef344e
|
@ -1,4 +1,4 @@
|
||||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/syntax.sgml,v 1.150 2010/08/05 18:21:17 tgl Exp $ -->
|
<!-- $PostgreSQL: pgsql/doc/src/sgml/syntax.sgml,v 1.151 2010/08/11 21:48:51 momjian Exp $ -->
|
||||||
|
|
||||||
<chapter id="sql-syntax">
|
<chapter id="sql-syntax">
|
||||||
<title>SQL Syntax</title>
|
<title>SQL Syntax</title>
|
||||||
|
@ -56,9 +56,9 @@
|
||||||
<para>
|
<para>
|
||||||
For example, the following is (syntactically) valid SQL input:
|
For example, the following is (syntactically) valid SQL input:
|
||||||
<programlisting>
|
<programlisting>
|
||||||
SELECT * FROM MY_TABLE;
|
SELECT * FROM my_table;
|
||||||
UPDATE MY_TABLE SET A = 5;
|
UPDATE my_table SET a = 5;
|
||||||
INSERT INTO MY_TABLE VALUES (3, 'hi there');
|
INSERT INTO my_table VALUES (3, 'hi there');
|
||||||
</programlisting>
|
</programlisting>
|
||||||
This is a sequence of three commands, one per line (although this
|
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
|
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');
|
||||||
</indexterm>
|
</indexterm>
|
||||||
Key words and unquoted identifiers are case insensitive. Therefore:
|
Key words and unquoted identifiers are case insensitive. Therefore:
|
||||||
<programlisting>
|
<programlisting>
|
||||||
UPDATE MY_TABLE SET A = 5;
|
UPDATE my_table SET a = 5;
|
||||||
</programlisting>
|
</programlisting>
|
||||||
can equivalently be written as:
|
can equivalently be written as:
|
||||||
<programlisting>
|
<programlisting>
|
||||||
uPDaTE my_TabLE SeT a = 5;
|
UPDATE my_table SET a = 5;
|
||||||
</programlisting>
|
</programlisting>
|
||||||
A convention often used is to write key words in upper
|
A convention often used is to write key words in upper
|
||||||
case and names in lower case, e.g.:
|
case and names in lower case, e.g.:
|
||||||
|
|
Loading…
Reference in New Issue