DEV Community

Rençber AKMAN
Rençber AKMAN

Posted on

🔍⭐What are CRUD operations? (Create, Read, Update, Delete)

CRUD refers to the four basic operations that can be performed on a database or an application: Create, Read, Update, Delete. These operations form the foundation of almost all software and data management systems.

Create (Oluştur) ✨ Used to add new data. 📌 Example: When a user fills out and submits a registration form, this operation adds a new user to the database.

Read (Oku) 📖 Used to read or retrieve existing data. 📌 Example: Running a query to view the list of users is a Read operation.

Update (Güncelle) 🔄 Used to modify existing data. 📌 Example: Changing a user's email address is an Update operation.

Delete (Sil) 🗑️ Used to remove existing data from the system. 📌 Example: Permanently deleting a user account is a Delete operation.

✅ In short:

Create → Add new data

Read → Retrieve/view data

Update → Modify existing data

Delete → Remove data

💡 Pro Tip: CRUD operations are often mapped to HTTP methods:

Create → POST

Read → GET

Update → PUT/PATCH

Delete → DELETE

This way, both database and REST API logic are built upon the same core principles.

Top comments (0)