mysql_xdevapi\TableSelect
PHP Manual

TableSelect::bind

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

TableSelect::bindBind select query parameters

说明

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

Binds a value to a specific placeholder.

参数

placeholder_values

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

返回值

A TableSelect object.

范例

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

<?php

$res 
$table->select('name','age')->where('name like :name and age > :age')
    ->
bind(['name' => 'Tierney''age' => 34])->orderBy('age desc')->execute();

?>

mysql_xdevapi\TableSelect
PHP Manual