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 Clients(Name) VALUES ('John')")
UPDATE
To retrieve updates:
sqlQuery("UPDATE Clients SET Name = 'John' WHERE Name = 'Bob'")
DELETE
To delete updates:
sqlQuery("DELETE FROM Clients WHERE Id = '9d382fcf-7013-4d97-8dd8-c08e8b26a0b2'")