mysql_xdevapi\Table
PHP Manual

Table::insert

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

Table::insertInsert table rows

说明

public mysql_xdevapi\TableInsert mysql_xdevapi\Table::insert ( mixed $columns [, mixed $... ] )

Creates a new TableInsert object.

参数

columns

The columns to insert data into. Can be an array with one or more values, or a string.

...

Additional columns definitions.

返回值

A TableInsert object.

范例

Example #1 mysql_xdevapi\Table::insert() example

<?php

$table
->insert("name""age")->values(["Sakila"128],["Sakila"512])->execute();

?>

mysql_xdevapi\Table
PHP Manual