px_get_schema

(PECL paradox >= 1.0.0)

px_get_schemaReturns the database schema

说明

px_get_schema ( resource $pxdoc [, int $mode = 0 ] ) : array

px_get_schema() returns the database schema.

参数

pxdoc

Resource identifier of the paradox database as returned by px_new().

mode

If the optional mode is PX_KEYTOLOWER or PX_KEYTOUPPER the keys of the returned array will be converted to lower or upper case. If mode is 0 or not passed at all, then the key name will be identical to the field name.

返回值

Returns the schema of a database file as an associated array. The key name is equal to the field name. Each array element is itself an associated array containing the two fields type and size. type is one of the constants in table Constants for field types. size is the number of bytes this field consumes in the record. The total of all field sizes is equal to the record size as it can be retrieved with px-get-info().

相关文章
php ibm db2 函数 returns or sets the autocommit state for a database connectionphp ibm db2 函数 returns an object with properties that describe the db2 database clientphp ibm db2 函数 returns a persistent connection to a databasephp ibm db2 函数 returns a result set listing the tables and associated privileges in a databasephp ibm db2 函数 returns a result set listing the tables and associated metadata in a databasephp maxdb 函数 returns the default character set for the database connectionphp oci8 函数 returns the next child statement resource from a parent statement resource that has oracle database 12c implicit result setsphp paradox 函数 returns record of paradox databasephp paradox 函数 returns the database schemaphp paradox 函数 inserts record into paradox databasephp paradox 函数 returns number of fields in a databasephp paradox 函数 returns number of records in a databasephp paradox 函数 open paradox databasephp paradox 函数 returns record of paradox databasephp paradox 函数 updates record in paradox databasephp sqlite 函数 execute a query against a given database and returns an arrayphp sqlite 函数 returns the error code of the last error for a databasephp sqlite 函数 executes a query against a given database and returns a result handlephp hyperwave api 函数 returns statistics about database serverphp sdo das relational 函数 executes a given sql query against a relational database and returns the results as a normalised data graph
关注编程学问公众号