PHP » GoLang |
login |
register |
about
|
GoLang PDOStatement::fetchColumn
request it (430)
GoLang replacement for PHP's PDOStatement::fetchColumn
[edit | history]
PDOStatement::fetchColumn(PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.9.0) PDOStatement::fetchColumn — Returns a single column from the next row of a result set Description
Returns a single column from the next row of a result set or
Parameters
Return Values
PDOStatement::fetchColumn() returns a single column
from the next row of a result set or Warning
There is no way to return another column from the same row if you use PDOStatement::fetchColumn() to retrieve data. Examples
Example #1 Return first column of the next row
<?php The above example will output: Fetch the first column from the first row in the result set: name = lemon Fetch the second column from the second row in the result set: colour = red See Also
|
more
Recently updated
more
Most requested
more
Last requests
|