SQL Syntax
Figure 3.1 shows an example SQL statement. Be unconcerned about the meaning (semantics) of the statement; I’m using it to explain SQL syntax.
Figure 3.1. An SQL statement, with comment.
Comment. A comment is optional text that you type on a separate line of your program to explain it. Two hyphens introduce a comment, which the DBMS ignores. Comments continue to the end of the line.
SQL statement. An SQL statement is a valid combination of tokens introduced by a keyword. Tokens are the basic indivisible particles of the SQL language; they can’t be reduced grammatically. Tokens include keywords, identifiers, operators, literals, and ...
Get SQL: Visual QuickStart Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.