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_get_class_name

Description

The cubrid_get_class_name function gets a class name from the OID.

Syntax

mixed cubrid_get_class_name (resource $conn_identifier, string $oid)

  • conn_identifier : Connection identifier
  • oid : OID of an instance, for which you want to check whether it exists
Return Value
  • Success : Class name
  • Failure : FALSE
Example

<?php

$conn = cubrid_connect("localhost", 33088, "demodb");

 

$req = cubrid_execute($conn, "SELECT * FROM code", CUBRID_INCLUDE_OID);

$oid = cubrid_current_oid($req);

$class_name = cubrid_get_class_name($conn, $oid);

 

print_r($class_name);

 

cubrid_disconnect($conn);

?>

 

The above example will output:

code

See Also