Update-Greenplum Cmdlet
Updates Greenplum data.
Syntax
Update-Greenplum [parameters]
Remarks
The Update-Greenplum cmdlet allows you to use a syntax similar to SQL UPDATE statements to update Greenplum data.
$conn = Connect-Greenplum -User 'user' -Password 'admin' -Server '127.0.0.1' -Port '5432' -Database 'dbname' Update-Greenplum -Connection $conn -Table "`"template1`".`"public`".Orders" -Columns @("ShipCity") -Values @("Raleigh") -Id "10261"The Where parameter can also be used to specify the primary key of the table:
Update-Greenplum -Connection $conn -Table "`"template1`".`"public`".Orders" -Columns @("ShipCity") -Values @("Raleigh") -Where "Id = '10261'"The primary key can also be passed to the cmdlet along the pipeline:
Select-Greenplum -Connection $conn -Table "template1"."public".Orders -Where "ShipCountry = 'USA'" | Update-Greenplum -Columns @("ShipCountry") -Values @("USA 2")