🎁 New User? Get 20% off your first purchase with code NEWUSER20 · ⚡ Instant download · 🔒 Secure checkout Register Now →
Menu

Categories

Databases Intermediate

What is Transaction?

A sequence of database operations that are treated as a single unit — either all succeed or all are rolled back.

Transactions ensure data consistency through ACID properties: Atomicity (all or nothing), Consistency (valid state transitions), Isolation (concurrent transactions don't interfere), and Durability (committed data persists).

Commands include BEGIN/START TRANSACTION, COMMIT (save changes), and ROLLBACK (undo changes). Isolation levels (READ UNCOMMITTED, READ COMMITTED, REPEATABLE READ, SERIALIZABLE) balance consistency and performance.

Related Terms

Graph Database
A database that uses graph structures with nodes, edges, and properties to store and query highly connected data.
Stored Procedure
A precompiled collection of SQL statements stored in the database that can be executed as a single unit.
Full-Text Search
A technique for searching natural language text in databases using word stemming, ranking, and relevance scoring.
Trigger
A database object that automatically executes a specified function when certain events (INSERT, UPDATE, DELETE) occur on a table.
Crosstab Query
A query that transforms rows into columns, creating a pivot table view of aggregated data.
Soft Delete
A pattern where records are marked as deleted with a flag or timestamp rather than being physically removed from the database.
View All Databases Terms →