Cubrid Functions
PHP Manual

cubrid_schema

(PECL CUBRID >= 8.3.0)

cubrid_schemaIs used to get the requested schema information

Description

array cubrid_schema ( resource $conn_identifier , int $schema_type [, string $class_name [, string $attr_name ]] )

The cubrid_schema() function is used to get the requested schema information from database. You have to designate class_name, if you want to get information on certain class, attr_name, if you want to get information on certain attribute (can be used only with CUBRID_ SCH_ATTR_PRIVILEGE).

Parameters

conn_identifier

Connection identifier.

schema_type

Schema data that you want to know.

class_name

Class you want to know the schema of.

attr_name

Attribute you want to know the schema of.

Return Values

Array containing the schema information, when process is successful;

-1, when process is unsuccessful

Examples

Example #1 cubrid_schema() example

<?php
$attrs 
cubrid_schema ($conCUBRID_SCH_ATTRIBUTE"person");
while (list(
$key$value) = each($attrs)) {
   echo 
$value["NAME"];
   echo 
$value["DOMAIN"];
}
?>

Cubrid Functions
PHP Manual