Update-OracleOci Cmdlet
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")