Module_Database::merge
null Module_Database::merge( [ string $table = null , array $value = null , array $where = null ] )
参数列表
参数 |
类型 |
描述 |
默认值 |
$table |
string |
$table |
null |
$value |
array |
$value |
null |
$where |
array |
$where |
null |
File: ./modules/database/database.class.php
502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 | public function merge( $table = null, $value = null, $where = null)
{
if ( $table )
{
$this ->table( $table );
}
if ( $value )
{
$this ->columns( array_keys ( $value ));
$this ->values( $value );
}
if ( $where )
{
$this ->where( $where );
}
$sql = $this ->compile( 'replace' );
return $this ->query( $sql , false, true);
}
|