How can you change "Hansen" into "Nilsen" in the "LastName" column in the Persons table?
The SQL UPDATE Statement
The UPDATE statement is used to modify particular existing records in a table.
UPDATE Syntax is given as follows:
UPDATE table_name SET columnA = valueA, columnB = valueB, columnC = valueC,... WHERE condition;
UPDATE Table
The following SQL statement updates the first admin (AdminID = 1) with a new admin and a new designation.
Example
UPDATE table_name SET columnA = valueA, columnB = valueB, columnC = valueC,... WHERE condition;
With SQL, how can you insert "Olsen" as the "LastName" in the "Persons" table?
With SQL, how can you insert a new record into the "Persons" table?
With SQL, how can you return all the records from a table named "Persons" sorted descending by "FirstName"?
Which SQL keyword is used to sort the result-set?
Which SQL statement is used to return only different values?