CUBRID (PDO)
PHP Manual

PDO::cubrid_schema

(No version information available, might only be in SVN)

PDO::cubrid_schemaIs used to get the requested schema information

Описание

array PDO::cubrid_schema ( int $schema_type [, string $table_name [, string $col_name ]] )

The cubrid_schema() function is used to get the requested schema information from database. You have to designate table_name, if you want to get information on certain table, col_name, if you want to get information on certain column (can be used only with PDO::CUBRID_SCH_COL_PRIVILEGE).

Список параметров

schema_type

Schema type that you want to know.

table_name

Table you want to know the schema of.

col_name

Column you want to know the schema of.

Возвращаемые значения

Array containing the schema information, when process is successful;

FALSE, when process is unsuccessful

Примеры

Пример #1 A PDO::cubrid_schema() example

This example shows how to get primary keys of table game.

<?php
$pk_list 
$dbh->cubrid_schema(PDO::CUBRID_SCH_PRIMARY_KEY"game");
print_r($pk_list);
?>


CUBRID (PDO)
PHP Manual