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 Contacts (Name) VALUES ('John Doe')")
UPDATE
To retrieve updates:
sqlQuery("UPDATE Contacts SET Name = 'John Doe' WHERE ContactStatus = 'ACTIVE'")
DELETE
To delete updates:
sqlQuery("DELETE FROM Contacts WHERE ContactId = 'c27221d7-8290-4204-9f3d-0cfb7c5a3d6f'")