CUBRID 函数
PHP Manual

cubrid_set_add

(PECL CUBRID >= 8.3.0)

cubrid_set_addIs used to insert a single element

说明

bool cubrid_set_add ( resource $conn_identifier , string $oid , string $attr_name , string $set_element )

The cubrid_set_add() function is used to insert a single element to a set type attribute (set, multiset) you requested.

参数

conn_identifier

Connection identifier.

oid

Oid of the instance you want to work with.

attr_name

Name of the attribute you want to insert an element.

set_element

Content of the element you want to insert.

返回值

TRUE, when process is successful.

FALSE, when process is unsuccessful.

范例

Example #1 cubrid_set_add() example

<?php
cubrid_set_add 
($con$oid"friend""James");
cubrid_set_add ($con$oid"friend""Michael");
?>

参见


CUBRID 函数
PHP Manual