RowResult::__construct

(사용 가능한 버전 정보가 없으며 Git에만 있을 수 있음)

RowResult::__construct — RowResult constructor


설명

private mysql_xdevapi\RowResult::__construct()

데이터베이스 쿼리에서 얻은 결과 집합을 나타냅니다.


매개변수

이 함수에는 매개변수가 없습니다.


Examples

예제 #1 mysql_xdevapi\RowResult::__construct() 예제

                  
<?php
$session = mysql_xdevapi\getSession("mysqlx://user:password@localhost");

$schema = $session->getSchema("addressbook");
$table  = $schema->getTable("names");

$row = $table->select('name', 'age')->where('age > 18')->execute()->fetchAll();

print_r($row);
                  
                

위의 예는 다음과 유사한 결과를 출력합니다.

Array
(
    [0] => Array
        (
            [name] => John
            [age] => 42
        )
    [1] => Array
        (
            [name] => Sam
            [age] => 33
        )
)