From: Mike Bayer Date: Mon, 13 Mar 2006 17:18:03 +0000 (+0000) Subject: tweak X-Git-Tag: rel_0_1_4~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5bc99b8cb3e9e2f238a0c2374470fd9af595295;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git tweak --- diff --git a/doc/build/content/sqlconstruction.myt b/doc/build/content/sqlconstruction.myt index f4c5f6d2a8..12fe1576ca 100644 --- a/doc/build/content/sqlconstruction.myt +++ b/doc/build/content/sqlconstruction.myt @@ -593,7 +593,7 @@ FROM addresses WHERE addresses.address_id IN

The sql package supports embedding select statements into other select statements as the criterion in a WHERE condition, or as one of the "selectable" objects in the FROM list of the query. It does not at the moment directly support embedding a SELECT statement as one of the column criterion for a statement, although this can be achieved via direct text insertion, described later.

- <&|doclib.myt:item, name="scalar", description="Scalar Column Queries"&> + <&|doclib.myt:item, name="scalar", description="Scalar Column Subqueries"&>

Subqueries can be used in the column clause of a select statement by specifying the scalar=True flag:

<&|formatting.myt:code &> <&formatting.myt:poplink&>select([table2.c.col1, table2.c.col2, select([table1.c.col1], table1.c.col2==7, scalar=True)])