Modifying Data
The following code examples show how to use data modification statements.
Procedure for Updates
You can use sqlQuery method to execute data modification statements.
INSERT
To insert updates:
sqlQuery("INSERT INTO Comments (Text) VALUES ('New to do')")
UPDATE
To retrieve updates:
sqlQuery("UPDATE Comments SET Text = 'New to do' WHERE AppId = '1354841'")
DELETE
To delete updates:
sqlQuery("DELETE FROM Comments WHERE Id = '123456'")