> ## Documentation Index
> Fetch the complete documentation index at: https://docs.risingwave.com/llms.txt
> Use this file to discover all available pages before exploring further.

# COMMIT

> RisingWave supports read-only transactions. You can use the `COMMIT` command to commit the current transaction.

For more information about transactions in RisingWave, see [Transactions](https://docs.risingwave.com/processing/transactions.md).

You can start a read-only transaction by using the `BEGIN READ ONLY` or `START TRANSACTION READ ONLY` command.

## Syntax

```sql theme={null}
COMMIT;
```

## Example

```sql theme={null}
COMMIT;
-------RESULT
COMMIT
```

## Related topics

> [card] [Transactions](https://docs.risingwave.com/processing/transactions.md)

> [card] [BEGIN](https://docs.risingwave.com/sql/commands/sql-begin.md)

> [card] [START TRANSACTION](https://docs.risingwave.com/sql/commands/sql-start-transaction.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.