
Spring을 공부할때도, Database를 공부할때도 항상 CRUD... CRUD... 맨날 이런다. 면접 질문으로도 CRUD가 뭔지 아냐.. 개발을 해봤다고 하면 CRUD까지 구현 해본거냐 정말 CRUD란 단어를 얼마나 많이 들어봤는지 모르겠다.
그러면 CRUD란 바로 무엇일까?
정의:
From Wikipedia, the free encyclopedia
"CRUD" redirects here. For other uses, see Crud.
In computer programming, create, read, update, and delete (CRUD) are the four basic operations of persistent storage.[1] CRUD is also sometimes used to describe user interface conventions that facilitate viewing, searching, and changing information using computer-based forms and reports.
위키백과에는 이렇게 적혀있다.
컴퓨터 프로그래밍에서 create(생성), read(읽기), update(수정), delete(삭제) 이 4가지 기능을 앞글자만 따서 얘기한 것이 CRUD이다.

그러면 각각의 기능이 Database와 API로는 어떻게 사용될까?
데이터베이스에서의 SQL문으로써의 사용법과 RESTful API에서 HTTP로 매핑되는 방법은 아래와 같다.
| CRUD | SQL | HTTP |
| Create | INSERT | POST, PUT if we have `id` or `uuid` |
| Read | SELECT | GET |
| Update | UPDATE | PUT to replace, PATCH to modify |
| Delete | DELETE | DELETE |