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 AccountCollection (AccountName) VALUES ('John')")
UPDATE
To retrieve updates:
sqlQuery("UPDATE AccountCollection SET AccountName = 'John' WHERE AccountName = 'MyAccount'")
DELETE
To delete updates:
sqlQuery("DELETE FROM AccountCollection WHERE ObjectID = ''00000000-0000-0000-0000-000000000000''")