Commit cd1e9f4a by Alexander Makarov

Added example for IS NOT NULL to query builder guide

parent 9ec5d62f
......@@ -184,6 +184,12 @@ results in this WHERE clause:
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,
```php
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment