diff --git a/docs/guide/db-query-builder.md b/docs/guide/db-query-builder.md index 28c2b8444d..7f2c1f5ff2 100644 --- a/docs/guide/db-query-builder.md +++ b/docs/guide/db-query-builder.md @@ -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