|
PHP5中文手册
mysqli_stmt_result_metadatastmt->result_metadata()(No version information available, might be only in CVS) stmt->result_metadata() — Returns result set metadata from a prepared statement 说明Procedural style:
mysqli_result mysqli_stmt_result_metadata
( mysqli_stmt $stmt
)
Object oriented style (method): mysqli_stmt
mysqli_result result_metadata
( void
)
If a statement passed to mysqli_prepare() is one that produces a result set, mysqli_stmt_result_metadata() returns the result object 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 mysqli_free_result()
返回值Returns a result object or FALSE if an error occured. 范例
Example#1 Object oriented style
<?php Example#2 Procedural style
<?php |