A SelectQuery interface provides the tools to build an SQL SELECT query.
Located in /harmoni/core/DBHandler/SelectQuery.interface.php (line 62)
Query | --SelectQueryInterface
Adds a new column to the SELECT query.
Adds a new column to the SELECT query. This method is an alternative to the setColumns() method. It adds one column at a time, and also provides the ability to explicitly specify the alias of the column to select. Note: addColumn() and setColumns() can be used together in any order. However, calling setColumns() after addColumn() resets the list of columns.
Add a column to the ORDER BY clause.
This method adds a column to the ORDER BY clause of the SELECT statement. If the method is never called, no ORDER BY clause will be included. The order of the columns in the clause will coincide with the order, in which they were added with this method.
Adds a table to the FROM clause of the SELECT query.
Adds a table to the FROM clause of the SELECT statement. At any moment, a current set of tables is maintained in the object, so when a new one is added, it is combined with the current set.
Adds a new condition in the WHERE clause.
The query will return only rows that fulfil the condition. If this method is never called, then the WHERE clause will not be included.
Limits the number of rows to the specified number.
Limits the number of rows returned by the SELECT query to the specified number.
*Deprecated* Sets the columns to select.
Sets the columns to select. Note: addColumn() and setColumns() can be used together in any order. However, calling setColumns() after addColumn() resets the list of columns.
Specifies whether distinct rows will be returned.
Use this method to specify whether the rows returned by the SELECT query have to be distinct (i.e. only unique rows) or not. If the method is never called, then the default value is not distinct.
Sets the GROUP BY and HAVING clause.
This method sets the GROUP BY clause of the SELECT statement. In addition, if $condition is specified, it includes the HAVING clause. If the method is never called, no GROUP BY or HAVING clause will be included.
*Deprecated* Specifies the condition in the WHERE clause.
The query will return only rows that fulfil the condition. If this method is never called, then the WHERE clause will not be included.
Starts the results from the specified row.
Starts the results of the SELECT query from the specified row.
Inherited From Query
Query::getType()
Query::reset()
Documentation generated on Wed, 19 Sep 2007 10:26:23 -0400 by phpDocumentor 1.3.0RC3