update のクエリパラメータをバインドする
$placeholder_values
特定のプレースホルダーの値をバインドします。
placeholder_values
プレースホルダーの名前、およびバインドする値です。 JSON の配列として定義されます。
TableUpdate オブジェクトを返します。
例1 mysql_xdevapi\TableUpdate::bind の例
<?php $session = mysql_xdevapi\getSession("mysqlx://user:password@localhost"); $schema = $session->getSchema("addressbook"); $table = $schema->getTable("names"); $table->update() ->set('status', 'admin') ->where('name = :name and age > :age') ->bind(['name' => 'Bernie', 'age' => 2000]) ->execute(); ?>