Updating Database Tables

To update a database table, please do the following.
  1. Add the following code to your script.
    sqlQuery =” UPDATE Persons SET Address='950 Tower Lane' City='Foster City' WHERE LastName='GuiXT' AND FirstName='Synactive'" 
  2. Add an execute statement as in the following example:
    db.exec(sqlQuery);
  3. The table 'Persons' has now been updated with the new information.