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