mysql_xdevapi\TableUpdate
PHP Manual

TableUpdate::bind

(No version information available, might only be in Git)

TableUpdate::bindBind update query parameters

说明

public mysql_xdevapi\TableUpdate mysql_xdevapi\TableUpdate::bind ( array $placeholder_values )

Binds a value to a specific placeholder.

参数

placeholder_values

The name of the placeholder, and the value to bind.

返回值

A TableUpdate object.

范例

Example #1 mysql_xdevapi\TableUpdate::bind() example

<?php

$res 
$table->update()->set('name''Alfonso')->where('name = :name and age > 2000')->bind(['name' => 'Oracila'])->execute();

?>

mysql_xdevapi\TableUpdate
PHP Manual