PDO::cubrid_schema
(No version information available, might only be in SVN)
PDO::cubrid_schema — Is used to get the requested schema information
Description
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).
Parameters
- 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.
Return Values
Array containing the schema information, when process is successful;
FALSE, when process is unsuccessful
Examples
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);
?>