Cmdlets for Informix

Build 24.0.9060

Update-Informix Cmdlet

Parameters   Output Objects  

Updates Informix data.

Syntax

Update-Informix [parameters]

Remarks

The Update-Informix cmdlet allows you to use a syntax similar to SQL UPDATE statements to update Informix data.

$conn = 
Update-Informix -Connection $conn -Table "[informix].Books" -Columns @("Author") -Values @("Jon Doe") -Id "22"
The Where parameter can also be used to specify the primary key of the table:
Update-Informix -Connection $conn -Table "[informix].Books" -Columns @("Author") -Values @("Jon Doe") -Where "Id = '22'"
The primary key can also be passed to the cmdlet along the pipeline:
Select-Informix -Connection $conn -Table [informix].Books -Where "Category = 'US'" | Update-Informix -Columns @("Category") -Values @("US 2")

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