QBColumn
Overview
The QBColumn
class represents a column in a QBSelect
query. It is used to define conditions, aggregate functions, and transformations within queries. The class provides a range of properties and methods for handling column-specific operations such as mathematical expressions, sorting, and conditional comparisons.
Key properties include abs
, ceil
, and floor
for mathematical transformations, and avg
, count
, and sum
for aggregate functions. Sorting can be applied using asc
and desc
, while date manipulations are supported with properties like day
, month
, and year
.
Methods enable additional functionality, including comparisons (eq
, between
, like
), mathematical operations (plus
, minus
, mod
), and string manipulations (substring
, concat
). The parent
and root
properties provide access to the query's structure, supporting complex query building and integration.
For more information about constructing and executing queries, refer to the QBSelect section of this documentation.
Properties Summarized
Methods Summarized
The flags are a bit pattern consisting of 1 or more of the following bits: - JSColumn.