Forum und email

dbplus_add

(PHP 4 >= 4.0.7, PECL dbplus:0.9)

dbplus_add — Add a tuple to a relation

說明

int dbplus_add ( resource $relation , array $tuple )

Adds a tuple to a relation .

參數

relation

tuple

An array of attribute/value pairs to be inserted into the given relation .

After successful execution this array will contain the complete data of the newly created tuple, including all implicitly set domain fields like sequences.

Return值

The function will return DBPLUS_ERR_NOERR on success or a db++ error code on failure.

註釋

Warning

本函式是實驗性的。這個函式的行為、名稱、和關於此函式的任何其他文件在未來PHP的發行中可能會在不通知的情況下改變。 使用此函式需自行承擔風險。