- Create, read, update and delete
-
In computer programming, create, read, update and delete (CRUD) are the four basic functions of persistent storage.[1] Sometimes CRUD is expanded with the words retrieve instead of read or destroy instead of delete. It is also sometimes used to describe user interface conventions that facilitate viewing, searching, and changing information; often using computer-based forms and reports. The term was likely first popularized by James Martin in a 1983 book titled "Managing the Data-base Environment".[2]
Contents
Database applications
The acronym CRUD refers to all of the major functions that are implemented in relational database applications, that are considered as complete application. Each letter in the acronym is mapped to a standard SQL statement:
Operation SQL HTTP/REST Create INSERT POST Read (Retrieve) SELECT GET Update UPDATE PUT Delete (Destroy) DELETE DELETE Although a relational database is a common persistence layer in software applications, there are numerous others. CRUD can be implemented with an object database, an XML database, flat text files, custom file formats, tape, or card, for example.
User interface
CRUD is also relevant at the user interface level of most applications. For example, in address book software, the basic storage unit is an individual contact entry. As a bare minimum, the software must allow the user to:
- Create or add new entries
- Read, retrieve, search, or view existing entries
- Update or edit existing entries
- Delete/deactivate existing entries
Without at least these four operations, the software cannot be considered complete. Because these operations are so fundamental, they are often documented and described under one comprehensive heading, such as "contact management" or "contact maintenance" (or "document management" in general, depending on the basic storage unit for the particular application).
See also
Notes
- ^ InfoWorld | Developer World | REST and CRUD: the Impedance Mismatch | January 29, 2007 06:00 AM | By Martin Heller
- ^ James Martin, Managing the Data-base Environment, Prentice-Hall, 1983
Database management systems Concepts - Database
- ACID
- CRUD
- Null
- Candidate key
- Foreign key
- Primary key
- Superkey
- Surrogate key
- Armstrong's axioms
- NoSQL
Objects - Relation (Table)
- View
- Transaction
- Log
- Trigger
- Index
- Stored procedure
- Cursor
- Partition
Components Database products:
Categories:- Database management systems
- Database stubs
Wikimedia Foundation. 2010.