The process of retrieving or the command to retrieve data from a
The process of retrieving or the command to retrieve data from a
database is called a <firstterm>query</firstterm>. In SQL the
database is called a <firstterm>query</firstterm>. In SQL the
<command>SELECT</command> command is used to specify queries. The
<xref linkend="sql-select" endterm="sql-select-title"> command is
general syntax of the <command>SELECT</command> command is
used to specify queries. The general syntax of the
<command>SELECT</command> command is
<synopsis>
<synopsis>
SELECT <replaceable>select_list</replaceable> FROM <replaceable>table_expression</replaceable> <optional><replaceable>sort_specification</replaceable></optional>
SELECT <replaceable>select_list</replaceable> FROM <replaceable>table_expression</replaceable> <optional><replaceable>sort_specification</replaceable></optional>
</synopsis>
</synopsis>
...
@@ -1284,7 +1285,7 @@ SELECT a FROM table1 ORDER BY b;
...
@@ -1284,7 +1285,7 @@ SELECT a FROM table1 ORDER BY b;
<synopsis>
<synopsis>
SELECT <replaceable>select_list</replaceable>
SELECT <replaceable>select_list</replaceable>
FROM <replaceable>table_expression</replaceable>
FROM <replaceable>table_expression</replaceable>
<optional>LIMIT { <replaceable>number</replaceable> | ALL }</optional> <optional>OFFSET <replaceable>number</replaceable></optional>