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

范例

Example #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