SQL Update
December 18, 2022 2022-12-19 0:35SQL Update
This is the Employee table on which we are going to perform the update operation, where the Country column is NULL

UPDATE EMPLOYEE SET COUNTRY = 'UK'
After running the above Update query we will see that all the rows of the country column has been updated to UK.

Now if we want to Update a particular row of the above table, we will run the below query with where condition.
UPDATE EMPLOYEE SET COUNTRY = 'FR' WHERE EmployeeId = 4
In the above query we are updating a particular row of a table using the where condition. So here we have updated country column of the Employee table for EmployeeId 4 with FR.

Please comment and share if you like this post and tell us about how we can enhance our posts. Thanks.
Subhajit
This is Subhajit Sinha, with more than 8 years of experience as a full stack developer in renowned Multinational Companies, here in this portal as an online tutor I will guide you personally to level up your programming skills and also will coach you to augment your career and salary as well.
Search
Popular posts
