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 Cards (ListId) VALUES ('614060a64bf2e765da7bd43f')")
UPDATE
To retrieve updates:
sqlQuery("UPDATE Cards SET ListId = '614060a64bf2e765da7bd43f' WHERE CardId = '614060b2c37da423f30dc7d6'")
DELETE
To delete updates:
sqlQuery("DELETE FROM Cards WHERE CardId = '5835594ee009411c6abdbfbd'")