Cmdlets for AlloyDB

Build 23.0.8839

Remove-AlloyDB Cmdlet

Parameters   Output Objects  

AlloyDB データを削除します。

Syntax

Remove-AlloyDB [parameters]

Remarks

Remove-AlloyDB コマンドレットを使って、SQL DELETE ステートメントに似た構文を用いてAlloyDB データを削除できます。

$conn = Connect-AlloyDB -User 'alloydb' -Password 'admin' -Server '127.0.0.1' -Port '5432' -Database 'alloydb'
Remove-AlloyDB -Connection $conn -Table "`"alloydb`".`"schema01`".Orders" -Id "10261"
Where パラメータは主キーを指定するためにも使われます。
Remove-AlloyDB -Connection $conn -Table "exTablePowershell;" -Where "Id = 10261"
主キーは、パイプライン上でコマンドレットに渡すこともできます。
Select-AlloyDB -Connection $conn -Table "alloydb"."schema01".Orders -Where "ShipCountry = 'USA'" | Remove-AlloyDB

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