选择语言 :

 Module_Database::merge

替换数据 replace into

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
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);
}