ODBC Driver for Apache Phoenix

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 [SampleCatalog_1].[SampleSchema_1].SampleTable_1 (Name) VALUES ('John')")

UPDATE

To retrieve updates:

sqlQuery("UPDATE [SampleCatalog_1].[SampleSchema_1].SampleTable_1 SET Name = 'John' WHERE Industry = 'Floppy Disks'")

DELETE

To delete updates:

sqlQuery("DELETE FROM [SampleCatalog_1].[SampleSchema_1].SampleTable_1 WHERE Id = '1'")

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