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

# START TRANSACTION

> RisingWave supports read-only transactions. You can use the `START TRANSACTION READ ONLY` command to start a read-only transaction. For more information about transactions in RisingWave, see [Transactions](/processing/transactions).

The `START TRANSACTION` 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 `START TRANSACTION` command is the same as the `BEGIN` command.

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

## Syntax

```sql theme={null}
START TRANSACTION;
```

## Example

```sql theme={null}
START TRANSACTION READ ONLY;
-------RESULT
START_TRANSACTION

```

## Related topics

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

  <Card title="BEGIN" icon="play" iconType="solid" href="/sql/commands/sql-begin" horizontal />

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