# Statements

## Quick overview

Statements are what you pass to `Session.Execute()` and `Session.ExecuteAsync()`.

There are three types:

* [SimpleStatement](https://csharp-driver.docs.scylladb.com/master/features/components/core/statements/simple/index.md): a simple implementation built directly from a character string.
  Typically used for queries that are executed only once or a few times.
* [BoundStatement (from PreparedStatement)](https://csharp-driver.docs.scylladb.com/master/features/components/core/statements/prepared/index.md): obtained by binding values to a prepared
  query. Typically used for queries that are executed often, with different values.
* [BatchStatement](https://csharp-driver.docs.scylladb.com/master/features/components/core/statements/batch/index.md): a statement that groups multiple statements to be executed as a batch.

All statement types share a common set of execution attributes, that can be set through setters:

* [execution profile](https://csharp-driver.docs.scylladb.com/master/features/execution-profiles/index.md) name.
* idempotent flag.
* tracing flag.
* [query timestamp](https://csharp-driver.docs.scylladb.com/master/features/query-timestamps/index.md).
* [page size and paging state](https://csharp-driver.docs.scylladb.com/master/features/paging/index.md).
* [per-query keyspace](https://csharp-driver.docs.scylladb.com/master/features/components/core/statements/per-query-keyspace/index.md) (Cassandra 4 or above).
* [token-aware routing](https://csharp-driver.docs.scylladb.com/master/features/routing-queries/index.md) information (keyspace and key/token).
* normal and serial consistency level.
* read timeout.
* custom payload to send arbitrary key/value pairs with the request (you should only need this if you have a custom query handler on the server).

Note that some attributes can either be set programmatically, or inherit a default value defined in the `Builder`. We recommended setting these values in the `Builder` whenever possible (you
can create execution profiles to capture common combinations of those options).
