Cubrid Functions
PHP Manual

cubrid_schema

(PHP 4, PHP 5)

cubrid_schemaIs used to get the requested schema information

Description

mixed cubrid_schema ( int $conn_handle , 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_handle

Connection handle.

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