ODBC Driver for Microsoft SharePoint

Build 23.0.8839

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 Calendar (Location) VALUES ('U.S.A.')")

UPDATE

To retrieve updates:

sqlQuery("UPDATE Calendar SET Location = 'U.S.A.' WHERE Location = 'Chapel Hill'")

DELETE

To delete updates:

sqlQuery("DELETE FROM Calendar WHERE Id = '1'")

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 23.0.8839