Cmdlets for DB2

Build 23.0.8839

Remove-DB2 Cmdlet

Parameters   Output Objects  

Deletes DB2 data.

Syntax

Remove-DB2 [parameters]

Remarks

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

$conn = 
Remove-DB2 -Connection $conn -Table "`"Sample`".`"DB2INST1`".Books" -Id "22"
The Where parameter can also be used to specify the primary key:
Remove-DB2 -Connection $conn -Table "exTablePowershell;" -Where "Id = 22"
The primary key can also be passed to the cmdlet along the pipeline:
Select-DB2 -Connection $conn -Table "Sample"."DB2INST1".Books -Where "Category = 'US'" | Remove-DB2

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