Updated to state INNER join rather than OUTER join
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36355 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2782,7 +2782,7 @@ of this function).
|
||||
|
||||
\wxheading{Parameters}
|
||||
|
||||
\docparam{From}{A comma separated list of table names that are to be outer
|
||||
\docparam{From}{A comma separated list of table names that are to be inner
|
||||
joined with the base table's columns so that the joined table's columns
|
||||
may be returned in the result set or used as a portion of a comparison with
|
||||
the base table's columns. NOTE that the base tables name must NOT be included
|
||||
@@ -3257,7 +3257,7 @@ records to be retrieved (e.g. All users with a first name of "JOHN").
|
||||
Use \helpref{wxDbTable::SetOrderByClause}{wxdbtablesetorderbyclause} to
|
||||
change the sequence in which records are returned in the result set from
|
||||
the datasource (e.g. Ordered by LAST\_NAME). Use
|
||||
\helpref{wxDbTable::SetFromClause}{wxdbtablesetfromclause} to allow outer
|
||||
\helpref{wxDbTable::SetFromClause}{wxdbtablesetfromclause} to allow inner
|
||||
joining of the base table (the one being associated with this instance of
|
||||
wxDbTable) with other tables which share a related field.
|
||||
|
||||
@@ -3689,14 +3689,14 @@ and saving a pointer to that cursor.
|
||||
\func{void}{SetFromClause}{\param{const wxString \&}{From}}
|
||||
|
||||
Accessor function for setting the private class member wxDbTable::from
|
||||
that indicates what other tables should be outer joined with the wxDbTable's
|
||||
that indicates what other tables should be inner joined with the wxDbTable's
|
||||
base table for access to the columns in those other tables.
|
||||
|
||||
Synonym to this function is one form of \helpref{wxDbTable::From}{wxdbtablefrom}
|
||||
|
||||
\wxheading{Parameters}
|
||||
|
||||
\docparam{From}{A comma separated list of table names that are to be outer
|
||||
\docparam{From}{A comma separated list of table names that are to be inner
|
||||
joined with the base table's columns so that the joined table's columns
|
||||
may be returned in the result set or used as a portion of a comparison with
|
||||
the base table's columns. NOTE that the base tables name must NOT be included
|
||||
@@ -3706,7 +3706,7 @@ in constructing query statements.}
|
||||
\wxheading{Remarks}
|
||||
|
||||
Used by the \helpref{wxDbTable::Query}{wxdbtablequery} and
|
||||
\helpref{wxDbTable::Count}{wxdbtablecount} member functions to allow outer
|
||||
\helpref{wxDbTable::Count}{wxdbtablecount} member functions to allow inner
|
||||
joining of records from multiple tables.
|
||||
|
||||
Do {\bf not} include the keyword "FROM" when setting the FROM clause.
|
||||
@@ -3721,7 +3721,7 @@ the datasource knows on which column values the tables should be joined on.
|
||||
\begin{verbatim}
|
||||
...
|
||||
// Base table is the "LOCATION" table, and it is being
|
||||
// outer joined to the "PART" table via the field "PART_NUMBER"
|
||||
// inner joined to the "PART" table via the field "PART_NUMBER"
|
||||
// that can be related between the two tables.
|
||||
location->SetWhereClause("LOCATION.PART_NUMBER = PART.PART_NUMBER")
|
||||
location->SetFromClause("PART");
|
||||
@@ -3855,7 +3855,7 @@ Do {\bf not} include the keywords "WHERE" when setting the WHERE clause.
|
||||
// Using parameters and multiple logical combinations
|
||||
parts->Where("((QTY > 10) OR (ON_ORDER > 0)) AND ON_HOLD = 0");
|
||||
...
|
||||
// This query uses an outer join (requiring a FROM clause also)
|
||||
// This query uses an inner join (requiring a FROM clause also)
|
||||
// that joins the PART and LOCATION table on he common field
|
||||
// PART_NUMBER.
|
||||
parts->Where("PART.ON_HOLD = 0 AND \
|
||||
|
Reference in New Issue
Block a user