CData Cmdlets for Google BigQuery 2019 - Online Help
Questions / Feedback?

Update-GoogleBigQuery Cmdlet

CData Cmdlets for Google BigQuery 2019 - Build 19.0.7354

Parameters   Output Objects  

Updates Google BigQuery data.

Syntax

Update-GoogleBigQuery [parameters]

Remarks

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

$conn = Connect-GoogleBigQuery -ProjectId 'NameOfProject' -DatasetId 'NameOfDataset'
Update-GoogleBigQuery -Connection $conn -Table "publicdata.samples.github_nested" -Columns @("repository.name") -Values @("EntityFramework") -Id "1"
The Where parameter can also be used to specify the primary key of the table:
Update-GoogleBigQuery -Connection $conn -Table "publicdata.samples.github_nested" -Columns @("repository.name") -Values @("EntityFramework") -Where "Id = '1'"
The primary key can also be passed to the cmdlet along the pipeline:
Select-GoogleBigQuery -Connection $conn -Table publicdata.samples.github_nested -Where "repository.name = 'EntityFramework'" | Update-GoogleBigQuery -Columns @("repository.name") -Values @("EntityFramework 2")

 
 
Copyright (c) 2020 CData Software, Inc. - All rights reserved.
Build 19.0.7354.0