]> begriffs open source - ai-pg/blob - full-docs/txt/sql-syntax.txt
Convert HTML docs to more streamlined TXT
[ai-pg] / full-docs / txt / sql-syntax.txt
1
2 Chapter 4. SQL Syntax
3
4    Table of Contents
5
6    4.1. Lexical Structure
7
8         4.1.1. Identifiers and Key Words
9         4.1.2. Constants
10         4.1.3. Operators
11         4.1.4. Special Characters
12         4.1.5. Comments
13         4.1.6. Operator Precedence
14
15    4.2. Value Expressions
16
17         4.2.1. Column References
18         4.2.2. Positional Parameters
19         4.2.3. Subscripts
20         4.2.4. Field Selection
21         4.2.5. Operator Invocations
22         4.2.6. Function Calls
23         4.2.7. Aggregate Expressions
24         4.2.8. Window Function Calls
25         4.2.9. Type Casts
26         4.2.10. Collation Expressions
27         4.2.11. Scalar Subqueries
28         4.2.12. Array Constructors
29         4.2.13. Row Constructors
30         4.2.14. Expression Evaluation Rules
31
32    4.3. Calling Functions
33
34         4.3.1. Using Positional Notation
35         4.3.2. Using Named Notation
36         4.3.3. Using Mixed Notation
37
38    This chapter describes the syntax of SQL. It forms the foundation for
39    understanding the following chapters which will go into detail about
40    how SQL commands are applied to define and modify data.
41
42    We also advise users who are already familiar with SQL to read this
43    chapter carefully because it contains several rules and concepts that
44    are implemented inconsistently among SQL databases or that are specific
45    to PostgreSQL.