-
+
SQL Syntax
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
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.: