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
413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 | 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);
}
|