Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
148d19fd
Commit
148d19fd
authored
May 27, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #3450: added note about the fact that $q parameter is mandatory for aggregare query methods
parent
5c96ba98
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
db-query-builder.md
docs/guide/db-query-builder.md
+2
-1
No files found.
docs/guide/db-query-builder.md
View file @
148d19fd
...
...
@@ -48,7 +48,8 @@ the query, execute it, and return the result. For example,
-
[
[yii\db\Query::scalar()|scalar()
]
]: returns the first column in the first row of the result.
-
[
[yii\db\Query::exists()|exists()
]
]: returns a value indicating whether the query results in anything.
-
[
[yii\db\Query::count()|count()
]
]: returns the result of a
`COUNT`
query. Other similar methods
include
`sum()`
,
`average()`
,
`max()`
,
`min()`
, which support the so-called aggregational data query.
include
`sum($q)`
,
`average($q)`
,
`max($q)`
,
`min($q)`
, which support the so-called aggregational data query.
`$q`
parameter is mandatory for these methods and can be either the column name or expression.
Building Query
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment