SQL 参考Part II. The SQL LanguageQueriesChapter QueriesTable of ContentsOverviewTable Expressions The FROM Clause The WHERE Clause The GROUP BY and HAVING Clauses Window Function ProcessingSelect Lists Select-List Items Column Labels DISTINCTCombining Queries (UNION, INTERSECT, EXCEPT)Sorting Rows (ORDER BY)LIMIT and OFFSETVALUES ListsWITH Queries (Common Table Expressions)SELECT in WITH Recursive Queries Common Table Expression Materialization Data-Modifying Statements in WITHThe previous chapters explained how to create tables, how to fill them with data, and how to manipulate that data. Now we finally discuss how to retrieve the data from the database.Returning Data from Modified RowsOverview
Chapter QueriesTable of ContentsOverviewTable Expressions The FROM Clause The WHERE Clause The GROUP BY and HAVING Clauses Window Function ProcessingSelect Lists Select-List Items Column Labels DISTINCTCombining Queries (UNION, INTERSECT, EXCEPT)Sorting Rows (ORDER BY)LIMIT and OFFSETVALUES ListsWITH Queries (Common Table Expressions)SELECT in WITH Recursive Queries Common Table Expression Materialization Data-Modifying Statements in WITHThe previous chapters explained how to create tables, how to fill them with data, and how to manipulate that data. Now we finally discuss how to retrieve the data from the database.