Cmdlets for Oracle

Build 24.0.9060

Update-OracleOci Cmdlet

Parameters   Output Objects  

Updates Oracle OCI data.

Syntax

Update-OracleOci [parameters]

Remarks

The Update-OracleOci cmdlet allows you to use a syntax similar to SQL UPDATE statements to update Oracle OCI data.

$conn = Connect-OracleOci -User 'myUser' -Password 'myPassword' -Database 'NorthWind' -Server 'myServer'
Update-OracleOci -Connection $conn -Table "`"CData`".`"SYSTEM`".Customers" -Columns @("City") -Values @("Paris") -Id "1"
The Where parameter can also be used to specify the primary key of the table:
Update-OracleOci -Connection $conn -Table "`"CData`".`"SYSTEM`".Customers" -Columns @("City") -Values @("Paris") -Where "Id = '1'"
The primary key can also be passed to the cmdlet along the pipeline:
Select-OracleOci -Connection $conn -Table "CData"."SYSTEM".Customers -Where "Country = 'US'" | Update-OracleOci -Columns @("Country") -Values @("US 2")

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