# man > ABORT(7)

---
type: CommandReference
command: ABORT
mode: man
section: 7
source: man-pages
---

## Quick Reference
- `ABORT;` — Roll back the current transaction, discarding all updates.

## Name
ABORT — abort the current transaction

## Synopsis
shell
ABORT [ WORK | TRANSACTION ] [ AND [ NO ] CHAIN ]
## Description
`ABORT` rolls back the current transaction, discarding all changes. It behaves identically to the standard SQL command `ROLLBACK` and exists only for historical reasons.

## Options
- `WORK`, `TRANSACTION` — Optional noise keywords; they have no effect.
- `AND CHAIN` — Immediately start a new transaction with the same characteristics (see `SET TRANSACTION`). If omitted (or `AND NO CHAIN` is specified), no new transaction is started.

## Examples
shell
ABORT;
## Notes
- Use `COMMIT` to successfully end a transaction.
- Issuing `ABORT` outside a transaction block emits a warning but otherwise has no effect.

## See Also
- [BEGIN](http://localhost/phpMan.php/man/BEGIN/7/markdown)
- [COMMIT](http://localhost/phpMan.php/man/COMMIT/7/markdown)
- [ROLLBACK](http://localhost/phpMan.php/man/ROLLBACK/7/markdown)