|
PDOStatement::fetchColumn(PHP 5 >= 5.1.0, PECL pdo >= 0.9.0) PDOStatement::fetchColumn — Returns a single column from the next row of a result set Описание
string PDOStatement::fetchColumn
([ int $column_number = 0
] )
Returns a single column from the next row of a result set or FALSE if there are no more rows. Список параметров
Возвращаемые значенияPDOStatement::fetchColumn() returns a single column in the next row of a result set. Внимание
There is no way to return another column from the same row if you use PDOStatement::fetchColumn() to retrieve data. Примеры
Пример #1 Return first column of the next row
<?php Результат выполнения данного примера: Fetch the first column from the next row in the result set: name = lemon Fetch the second column from the next row in the result set: colour = red Смотрите также
|
|