This site is mobile accessible. Press the "Tap Here" button to use a different font-size.


Smartphone icons created by Freepik - Flaticon

  • 8.13 MySQL Update Data

    The UPDATE statement is used to update existing records in a table:

    UPDATE table_name
    SET column1=value, column2=value2,...
    WHERE some_column=some_value
    • Notice the WHERE clause in the UPDATE syntax: The WHERE clause specifies which record or records that should be updated. If you omit the WHERE clause, all records will be updated!
    • Let's look at the "MyGuests" table:
    Connection failed: No such file or directory