downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

cubrid_send_glo> <cubrid_save_to_glo
Last updated: Fri, 24 Sep 2010

view this page in

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"];
}
?>


add a note add a note User Contributed Notes
cubrid_schema
There are no user contributed notes for this page.

cubrid_send_glo> <cubrid_save_to_glo
Last updated: Fri, 24 Sep 2010
 
 
show source | credits | sitemap | contact | advertising | mirror sites