It seems INSERT and UPDATE do the same things to me.
Is there any occasions where I should use INSERT instead of UPDATE and vice versa?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In CRUD operations, the
INSERTis the ‘C’ and theUPDATEis the ‘U’. They are two of the four basic functions of persistent storage. The other two areSELECTandDELETE. Without at least these four operations, a typical database system cannot be considered complete.Use
INSERTto insert a new record.Use
UPDATEto update an existing record.