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
cd1e9f4a
Commit
cd1e9f4a
authored
Jan 20, 2015
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added example for IS NOT NULL to query builder guide
parent
9ec5d62f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
db-query-builder.md
docs/guide/db-query-builder.md
+6
-0
No files found.
docs/guide/db-query-builder.md
View file @
cd1e9f4a
...
@@ -184,6 +184,12 @@ results in this WHERE clause:
...
@@ -184,6 +184,12 @@ results in this WHERE clause:
WHERE
(
`status`
IS
NULL
)
WHERE
(
`status`
IS
NULL
)
```
```
If you need
`IS NOT NULL`
you can use the following:
```
php
$query
->
where
([
'not'
,
[
'col'
=>
null
]]);
```
You can also create sub-queries with
`Query`
objects like the following,
You can also create sub-queries with
`Query`
objects like the following,
```
php
```
php
...
...
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