AI agents: Read [llms.txt](https://kysely.dev/llms.txt) for the documentation index and links to Markdown (.md) versions of individual pages. Read [llms-full.txt](https://kysely.dev/llms-full.txt) for the full documentation in one file.

* [](https://kysely.dev/index.md)
* [Examples](https://kysely.dev/docs/category/examples.md)
* WHERE

# WHERE

Short and simple examples of how to use the where method to add a WHERE statement. While most of the examples show a SELECT query, the where method works exactly the same in UPDATE and DELETE queries too.

## [📄️Simple where clause](https://kysely.dev/docs/examples/where/simple-where-clause.md)

[where method calls are combined with AND:](https://kysely.dev/docs/examples/where/simple-where-clause.md)

## [📄️Where in](https://kysely.dev/docs/examples/where/where-in.md)

[Find multiple items using a list of identifiers:](https://kysely.dev/docs/examples/where/where-in.md)

## [📄️Object filter](https://kysely.dev/docs/examples/where/object-filter.md)

[You can use the and function to create a simple equality](https://kysely.dev/docs/examples/where/object-filter.md)

## [📄️OR where](https://kysely.dev/docs/examples/where/or-where.md)

[To combine conditions using OR, you can use the expression builder.](https://kysely.dev/docs/examples/where/or-where.md)

## [📄️Conditional where calls](https://kysely.dev/docs/examples/where/conditional-where-calls.md)

[You can add expressions conditionally like this:](https://kysely.dev/docs/examples/where/conditional-where-calls.md)

## [📄️Complex where clause](https://kysely.dev/docs/examples/where/complex-where-clause.md)

[For complex where expressions you can pass in a single callback and](https://kysely.dev/docs/examples/where/complex-where-clause.md)

[Previous](https://kysely.dev/docs/examples/select/generic-find-query.md)

[Generic find query](https://kysely.dev/docs/examples/select/generic-find-query.md)

[Next](https://kysely.dev/docs/examples/where/simple-where-clause.md)

[Simple where clause](https://kysely.dev/docs/examples/where/simple-where-clause.md)
