concept
SQL lexical structure
Identifiers name objects, literals denote values, comments document code. Quoting identifiers is distinct from quoting strings; dialect-specific case folding and escape rules vary.
Formal Syntax & Structure
sql syntaxsql
-- comment; /* comment */; "identifier"; 'literal'Working Example
Example Snippetsql
SELECT 'O''Brien' AS "customer name";