ODBC Driver for SAP Cloud for Customer

Build 25.0.9434

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''")

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9434