Cmdlets for Oracle

Build 24.0.9060

Remove-OracleOci Cmdlet

Parameters   Output Objects  

Deletes Oracle OCI data.

Syntax

Remove-OracleOci [parameters]

Remarks

The Remove-OracleOci cmdlet allows you to use a syntax similar to SQL DELETE statements to delete Oracle OCI data.

$conn = Connect-OracleOci -User 'myUser' -Password 'myPassword' -Database 'NorthWind' -Server 'myServer'
Remove-OracleOci -Connection $conn -Table "`"CData`".`"SYSTEM`".Customers" -Id "1"
The Where parameter can also be used to specify the primary key:
Remove-OracleOci -Connection $conn -Table "exTablePowershell;" -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'" | Remove-OracleOci

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