Grokking SQL for Tech Interviews
Ask Author
Back to course home

0% completed

Vote For New Content
UPDATE
On this page

UPDATE

The UPDATE statement in SQL is used to modify existing records in a table. It allows you to change the values of one or more columns in a specific row.

The basic syntax for the UPDATE statement is as follows:

UPDATE table_name SET column1 = value1, column2 = value2, ... WHERE condition;

Let's break down the components of the UPDATE statement:

  • UPDATE: This keyword indicates that you want to update existing records in a table.
  • table_name: Specifies the name of the table.
  • SET: This keyword is followed by a list of columns and their new values

.....

.....

.....

Like the course? Get enrolled and start learning!

On this page