|
PHP5中文手册
maxdb_stmt_result_metadata(PECL maxdb:1.0-7.6.00.38) maxdb_stmt_result_metadata — Returns result set metadata from a prepared statement 说明Procedural style:
resource maxdb_stmt_result_metadata
( resource $stmt
)
Object oriented style (method): stmt
resource result_metadata
( void
)
If a statement passed to maxdb_prepare() is one that produces a result set, maxdb_stmt_result_metadata() returns the result resource that can be used to process the meta information such as total number of fields and individual field information.
The result set structure should be freed when you are done with it, which you can do by passing it to maxdb_free_result()
返回值maxdb_stmt_result_metadata() returns a result resource or FALSE if an error occured. 范例
Example#1 Object oriented style
<?php Example#2 Procedural style
<?php The above examples would produce the following output:
|