选择语言 :

 Module_Database::insert

插入数据

 Module_Database::insert( [ string $table = null , array $value = null ] )

参数列表

参数 类型 描述 默认值
$table string $table null
$value array $value null
返回值
File: ./modules/database/database.class.php
public function insert($table = null, $value = null)
{
    if ($table)
    {
        $this->table($table);
    }
    if ($value)
    {
        $this->columns(array_keys($value));
        $this->values($value);
    }
    $sql = $this->compile('insert');

    return $this->query($sql , false , true);
}