|
PDOStatement::fetchColumnReturns a single column from the next row of a result set Beschreibung
public mixed PDOStatement::fetchColumn
([ int
$column_number = 0
] )
Returns a single column from the next row of a result set or
Parameter-Liste
Rückgabewerte
PDOStatement::fetchColumn returns a single column
from the next row of a result set or Warnung
There is no way to return another column from the same row if you use PDOStatement::fetchColumn to retrieve data. Beispiele
Beispiel #1 Return first column of the next row
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe: 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 Siehe auch
|