Cmdlets for Presto

Build 22.0.8479

Remove-Presto Cmdlet

Parameters   Output Objects  

Presto データを削除します。

Syntax

Remove-Presto [parameters]

Remarks

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

$conn = Connect-Presto -Server '127.0.0.1' -Port 9200
Remove-Presto -Connection $conn -Table "[Hive].[Default].Customers" -Id "1"
Where パラメータは主キーを指定するためにも使われます。
Remove-Presto -Connection $conn -Table "exTablePowershell;" -Where "Id = 1"
主キーは、パイプライン上でコマンドレットに渡すこともできます。
Select-Presto -Connection $conn -Table [Hive].[Default].Customers -Where "Industry = 'Floppy Disks'" | Remove-Presto

Copyright (c) 2023 CData Software, Inc. - All rights reserved.
Build 22.0.8479