(无版本信息可用,可能仅存在于Git中)
RowResult::__construct — RowResult 构造函数
表示从数据库查询获得的结果集。
此函数没有参数。
示例 #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
)
)