QBIntegerColumn
Overview
The QBIntegerColumn class represents a integer column in a QBSelect query.
For more information about constructing and executing queries and columns, refer to the QBSelect section of this documentation.
Extends
Properties Summarized
Methods Summarized
Properties Detailed
abs
Create abs(column) expression
Type QBColumn a QBColumn representing the absolute value of the column.
Sample
avg
Create an aggregate average expression.
Type QBColumn a QBColumn representing the average aggregate of the column.
Sample
isNull
Compare column with null.
Type QBCondition a QBCondition representing the "is null" comparison.
Sample
max
Create an aggregate max expression.
Type QBColumn a QBColumn representing the sum aggregate function.
Sample
min
Create an aggregate min expression.
Type QBColumn a QBColumn representing the minimum aggregate function.
Sample
not
Create a negated condition.
Type QBColumnComparable a QBColumn representing the negated condition.
Sample
sqrt
Create sqrt(column) expression
Type QBColumn a QBNumberColumn representing the square root of the column.
Sample
sum
Create an aggregate sum expression.
Type QBColumn a QBColumn representing the sum aggregate of the column.
Sample
Methods Detailed
between(value1, value2)
Compare column to a range of 2 values or other columns.
Parameters
Returns: QBCondition a QBCondition representing the "between" comparison for the two values.
Sample
coalesce(value)
Create coalesce(arg) expression
Parameters
Object value when column is null
Returns: QBColumn a QBColumn representing the coalesce expression.
Sample
divide(value)
Divide by value
Parameters
Object value nr to divide by
Returns: QBColumn a QBNumberColumn representing the column divided by the value.
Sample
eq(value)
Compare column with a value or another column. Operator: equals
Parameters
Object value ;
Returns: QBCondition a QBCondition representing the "equals" comparison.
Sample
ge(value)
Compare column with a value or another column. Operator: greaterThanOrEqual
Parameters
Object value ;
Returns: QBCondition a QBCondition representing the "greater than or equal to" comparison.
Sample
gt(value)
Compare column with a value or another column. Operator: greaterThan
Parameters
Object value ;
Returns: QBCondition a QBCondition representing the "greater than" comparison.
Sample
isin(query)
Compare column with subquery result.
Parameters
QBPart query subquery
Returns: QBCondition a QBCondition representing the "in" comparison with a subquery.
Sample
isin(values)
Compare column with values.
Parameters
Array values array of values
Returns: QBCondition a QBCondition representing the "in" comparison with a list of values.
Sample
isin(customQuery, args)
Compare column with custom query result.
Parameters
Returns: QBCondition a QBCondition representing the "in" comparison with a custom query and arguments.
Sample
le(value)
Compare column with a value or another column. Operator: lessThanOrEqual
Parameters
Object value ;
Returns: QBCondition a QBCondition representing the "less than or equal to" comparison.
Sample
lt(value)
Compare column with a value or another column. Operator: lessThan
Parameters
Object value ;
Returns: QBCondition a QBCondition representing the "less than" comparison.
Sample
minus(value)
Subtract value
Parameters
Object value nr to subtract
Returns: QBColumn a QBNumberColumn representing the column substracted with the value.
Sample
mod(arg)
Create mod(arg) expression
Parameters
Object arg mod arg
Returns: QBColumn a QBColumn representing the modulo of the column.
Sample
multiply(value)
Multiply with value
Parameters
Object value nr to multiply with
Returns: QBColumn a QBNumberColumn representing the column multiplied with the value.
Sample
nullif(arg)
Create nullif(arg) expression
Parameters
Object arg object to compare
Returns: QBColumn a QBColumn representing the nullif expression.
Sample
plus(value)
Add up value
Parameters
Object value nr to add
Returns: QBColumn a QBNumberColumn representing the column added with the value.
Sample
Last updated
Was this helpful?