Added example for IS NOT NULL to query builder guide

This commit is contained in:
Alexander Makarov
2015-01-20 21:52:34 +03:00
parent 9ec5d62f57
commit cd1e9f4a99

View File

@@ -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