|
cubrid_set_addInsert a single element to set type column using OID Beschreibung
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, sequence) you requested. Parameter-Liste
Rückgabewerte
BeispieleBeispiel #1 cubrid_set_add example
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe:
array(3) {
[0]=>
string(1) "1"
[1]=>
string(1) "2"
[2]=>
string(1) "3"
}
array(4) {
[0]=>
string(1) "1"
[1]=>
string(1) "2"
[2]=>
string(1) "3"
[3]=>
string(1) "4"
}
Siehe auch
|