---
title: "END"
url: "https://docs.yugabyte.com/stable/api/ysql/the-sql-language/statements/txn_end/"
---

# END

Use the `END` statement to commit the current transaction.

## Synopsis

Use the `END` statement to commit the current transaction. All changes made by the transaction become visible to others and are guaranteed to be durable if a crash occurs.

## Syntax

- [![Grammar Icon](/icons/file-lines.svg)Grammar](#grammar-2)
- [![Diagram Icon](/icons/diagram.svg)Diagram](#diagram-2)

```output.ebnf
end ::= END [ TRANSACTION | WORK ]
```

#### end

ENDTRANSACTIONWORK

## Semantics

### *end*

```
END [ TRANSACTION | WORK ]
```

### WORK

Add optional keyword — has no effect.

### TRANSACTION

Add optional keyword — has no effect.

## See also

- [ABORT](/stable/api/ysql/the-sql-language/statements/txn_abort "ABORT")
- [BEGIN](/stable/api/ysql/the-sql-language/statements/txn_begin/ "BEGIN")
- [START TRANSACTION](/stable/api/ysql/the-sql-language/statements/txn_start/ "START TRANSACTION")
- [COMMIT](/stable/api/ysql/the-sql-language/statements/txn_commit "COMMIT")
- [ROLLBACK](/stable/api/ysql/the-sql-language/statements/txn_rollback "ROLLBACK")
