Editor PHP 2.2.2

Db2Result extends Result
in package

SQL Server driver for DataTables Database Result class.

@internal

Table of Contents

__construct()  : mixed
count()  : int
Count the number of rows in the result set.
fetch()  : array<string|int, mixed>
Get the next row in a result set.
fetchAll()  : array<string|int, mixed>
Get all rows in the result set.
insertId()  : int
After an INSERT query, get the ID that was inserted.

Methods

__construct()

public __construct(mixed $dbh, mixed $stmt) : mixed
Parameters
$dbh : mixed
$stmt : mixed
Return values
mixed

count()

Count the number of rows in the result set.

public count() : int
Return values
int

fetch()

Get the next row in a result set.

public fetch([mixed $fetchType = PDO::FETCH_ASSOC ]) : array<string|int, mixed>
Parameters
$fetchType : mixed = PDO::FETCH_ASSOC

PDO row fetch style - PDO::FETCH_ASSOC is the default

Return values
array<string|int, mixed>

fetchAll()

Get all rows in the result set.

public fetchAll([mixed $fetchType = PDO::FETCH_ASSOC ]) : array<string|int, mixed>
Parameters
$fetchType : mixed = PDO::FETCH_ASSOC

PDO row fetch style - PDO::FETCH_ASSOC is the default

Return values
array<string|int, mixed>

insertId()

After an INSERT query, get the ID that was inserted.

public insertId() : int
Return values
int

        

Search results