SQL Update Statement
The SQL UPDATE statement is used to modify the data that is already in the database. The condition in the WHERE clause decides that which row is to be updated.
Updating single record
Update the column EMP_NAME and set the value to 'Emma' in the row where SALARY is 500000.
Output: After executing this query, the EMPLOYEE table will look like:
Updating multiple records
If you want to update multiple columns, you should separate each field assigned with a comma. In the EMPLOYEE table, update the column EMP_NAME to 'Kevin' and CITY to 'Boston' where EMP_ID is 5.
Without use of WHERE clause
If you want to update all row from a table, then you don't need to use the WHERE clause. In the EMPLOYEE table, update the column EMP_NAME as 'Harry'.
Next TopicDBMS SQL Delete