我想使用'WHERE'子句更新表中的一条记录。
我已经使用composer for php安装了google / cloud-bigquery。
我的代码:
$cloud = new ServiceBuilder([
'keyFilePath' => 'Path for json file'
]);
$bigQuery = $cloud->bigQuery();
$dataset = $bigQuery->dataset('mydataset');
$table = $dataset->table('mytable');
$rows = $table->update(['name'=>'abc']);
我上面的代码不起作用。
1]此库是否可能。
2]如果是,那么如何在$ table-> update(['name'=>'abc'])上方传递WHERE子句;代码。
3]如何设置要更新的字段。
我的帮助网址 https://googlecloudplatform.github.io/google-cloud-php/#/docs/google-cloud/v0.28.0/bigquery/table