---
title: "DO statement"
description: "Evaluate an expression without returning a result using the CoraDB DO statement, for example to check an expression or run a function for its side effects."
url: "https://www.coradb.ai/manual/sql/query/do.html"
markdown_url: "https://www.coradb.ai/manual/markdown/sql/query/do.md"
product: "CoraDB"
version: "1.0"
keywords: "do statement, evaluate expression, coradb do"
---

# DO statement

The **DO** statement evaluates an expression and discards the result. Use it to check that an expression is valid (an invalid one returns an error) or to call a function only for its side effects. Because no result set is built and sent back, `DO` is slightly cheaper than the equivalent `SELECT`.

## Syntax

```text
DO expression
```

- *expression*: any expression, including a subquery that returns one value.

## Examples

```sql
DO 1 + 1;
DO SYSDATE + 1;
DO (SELECT COUNT(*) FROM orders);
```

Each statement succeeds and returns nothing. An expression that cannot be evaluated is reported as an error, just as it would be in a `SELECT`.

## See also

- [SELECT](https://www.coradb.ai/manual/sql/query/select.html)
- [Operators and functions](https://www.coradb.ai/manual/sql/function.html)
