MySQL Reference Manual for version 4.0.18.

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.8.5.1 Subqueries

MySQL Version 4.1 supports subqueries and derived tables. A subquery is a SELECT statement nested within another statement. A derived table (an unnamed view) is a subquery in the FROM clause of another statement. See section 13.1.8 Subquery Syntax.

For MySQL versions older than 4.1, most subqueries can be rewritten using joins or other methods. See 13.1.8.11 Rewriting Subqueries for Earlier MySQL Versions for examples that show how to do this.



This document was generated by rdg (Feb 25 2004) using texi2html