Cmdlets for Apache Phoenix

Build 24.0.9060

Update-ApachePhoenix Cmdlet

Parameters   Output Objects  

Updates Apache Phoenix data.

Syntax

Update-ApachePhoenix [parameters]

Remarks

The Update-ApachePhoenix cmdlet allows you to use a syntax similar to SQL UPDATE statements to update Apache Phoenix data.

$conn = Connect-ApachePhoenix -URL 'http://localhost:8765'
Update-ApachePhoenix -Connection $conn -Table "[SampleCatalog_1].[SampleSchema_1].SampleTable_1" -Columns @("Name") -Values @("Jon Doe") -Id "1"
The Where parameter can also be used to specify the primary key of the table:
Update-ApachePhoenix -Connection $conn -Table "[SampleCatalog_1].[SampleSchema_1].SampleTable_1" -Columns @("Name") -Values @("Jon Doe") -Where "Id = '1'"
The primary key can also be passed to the cmdlet along the pipeline:
Select-ApachePhoenix -Connection $conn -Table [SampleCatalog_1].[SampleSchema_1].SampleTable_1 -Where "Industry = 'Floppy Disks'" | Update-ApachePhoenix -Columns @("Industry") -Values @("Floppy Disks 2")

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