UPDATE Command with Single Records
Let’s set the new cost for the course called ‘Data Structures And Algorithms’ in ‘CoursesActive‘ Table using UPDATE Command.
Query
UPDATE CoursesActive SET courseCost = 5000
WHERE courseName = 'Data Structures And Algorithms'
SELECT * FROM CoursesActive
Output:
Explanation: In this query, We have set the cost of ‘Data Structures And Algorithms’ as ‘5000’.
SQL Server UPDATE
SQL Server is a database engine. It works on the relational database management system (RDBMS) that allow programmer to create, manage, and manipulate data present on the relational database through their commands which is easy to learn and implement.
Contact Us