update entry sql code example
Example 1: updating values in sql
//to update value
UPDATE students SET course_id = 102
WHERE last_name = 'Jones'; ->
if there is no condition it will update all!
Example 2: UPDATE command in SQL
UPDATE Customers
SET ContactName = 'Alfred Schmidt', City= 'Frankfurt'
WHERE CustomerID = 1;
Sql("UPDATE MembershipTypes SET NAME = 'Pay As You Go' WHERE Id = 1");