PHP Doku:: Is used to get the requested schema information - function.cubrid-schema.html

Verlauf / Chronik / History: (1) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzDatenbankerweiterungenAnbieterspezifische DatenbankerweiterungenCubridCubrid Funktionencubrid_schema

Ein Service von Reinhard Neidl - Webprogrammierung.

Cubrid Funktionen

<<cubrid_save_to_glo

cubrid_send_glo>>

cubrid_schema

(PECL CUBRID >= 8.3.0)

cubrid_schemaIs used to get the requested schema information

Beschreibung

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).

Parameter-Liste

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.

Rückgabewerte

Array containing the schema information, when process is successful;

FALSE, when process is unsuccessful

Changelog

Version Beschreibung
8.3.1 Change return value: when process is unsuccessful, return false, not -1.

Beispiele

Beispiel #1 cubrid_schema() example

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

Keine BenutzerBeiträge.
- Beiträge aktualisieren...



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)