Open Source RDBMS - Seamless, Scalable, Stable and Free

한국어 | Login |Register

Versions available for this page: CUBRID 8.2.1 |  CUBRID 8.3.0 |  CUBRID 8.3.1 |  CUBRID 8.4.0 |  CUBRID 8.4.1 | 



cubrid_col_size

Description

The cubrid_col_size function gets the number of elements of a collection type (set, multiset, sequence) attribute.

Syntax

int cubrid_col_size(resource $conn_identifier, string $oid, string $attr_name)

  • conn_identifier : Connection identifier
  • oid : OID of the desired instance
  • attr_name : Name of the desired attribute of the instance
Return Value
  • Success : The number of elements
  • Failure : FALSE
Example

$elem_count = cubrid_col_size ($con, $oid, "tel");

echo "$oid (tel) has $elem_count elements ";