|
RowResult::getColumnsGet column metadata Description
public array mysql_xdevapi\RowResult::getColumns()
Retrieve column metadata for columns present in the result set. Warning
This function is currently not documented; only its argument list is available. ParametersThis function has no parameters. Return ValuesAn array of FieldMetadata objects representing the columns in the result, or an empty array if the result set is empty. ExamplesExample #1 mysql_xdevapi\RowResult::getColumns example
The above example will output something similar to: Array ( [0] => mysql_xdevapi\FieldMetadata Object ( [type] => 7 [type_name] => BYTES [name] => name [original_name] => name [table] => names [original_table] => names [schema] => addressbook [catalog] => def [collation] => 255 [fractional_digits] => 0 [length] => 65535 [flags] => 0 [content_type] => 0 ) [1] => mysql_xdevapi\FieldMetadata Object ( [type] => 1 [type_name] => SINT [name] => age [original_name] => age [table] => names [original_table] => names [schema] => addressbook [catalog] => def [collation] => 0 [fractional_digits] => 0 [length] => 11 [flags] => 0 [content_type] => 0 ) ) |