> ## 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.

# BEGIN

> RisingWave supports read-only transactions. You can use the `BEGIN READ ONLY` command to start a read-only transaction.

For more information about transactions in RisingWave, see [Transactions](/processing/transactions).

The `BEGIN` command starts the read-write transaction mode, which is not supported yet in RisingWave. For compatibility reasons, this command will still succeed but no transaction is actually started. That is why you need to specify the `READ ONLY` option to start a transaction in read-only mode.

The `BEGIN` command is the same as the `START TRANSACTION` command.

You can end a transaction by using the `COMMIT` command.

## Syntax

```sql theme={null}
BEGIN READ ONLY;
-------RESULT
BEGIN

```

## Related topics

<CardGroup>
  <Card title="Transactions" icon="rotate" href="/processing/transactions" iconType="solid" horizontal />

  <Card title="START TRANSACTION" icon="play" href="/sql/commands/sql-start-transaction" iconType="solid" horizontal />

  <Card title="COMMIT" icon="check" href="/sql/commands/sql-commit" iconType="solid" horizontal />
</CardGroup>
