Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 1 | ######################## |
| 2 | Generating Query Results |
| 3 | ######################## |
| 4 | |
| 5 | There are several ways to generate query results: |
| 6 | |
James L Parry | 1516219 | 2014-12-05 23:40:47 -0800 | [diff] [blame] | 7 | .. contents:: |
| 8 | :local: |
| 9 | :depth: 2 |
| 10 | |
James L Parry | 014bc89 | 2014-11-24 17:14:19 -0800 | [diff] [blame] | 11 | ************* |
| 12 | Result Arrays |
| 13 | ************* |
| 14 | |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 15 | result() |
| 16 | ======== |
| 17 | |
James L Parry | e4a9f64 | 2014-11-24 16:20:53 -0800 | [diff] [blame] | 18 | This method returns the query result as an array of **objects**, or |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 19 | **an empty array** on failure. Typically you'll use this in a foreach |
| 20 | loop, like this:: |
| 21 | |
Joseph Wensley | f24f404 | 2011-10-06 22:53:29 -0400 | [diff] [blame] | 22 | $query = $this->db->query("YOUR QUERY"); |
| 23 | |
| 24 | foreach ($query->result() as $row) |
| 25 | { |
| 26 | echo $row->title; |
| 27 | echo $row->name; |
| 28 | echo $row->body; |
| 29 | } |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 30 | |
James L Parry | e4a9f64 | 2014-11-24 16:20:53 -0800 | [diff] [blame] | 31 | The above method is an alias of result_object(). |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 32 | |
| 33 | If you run queries that might **not** produce a result, you are |
| 34 | encouraged to test the result first:: |
| 35 | |
Joseph Wensley | f24f404 | 2011-10-06 22:53:29 -0400 | [diff] [blame] | 36 | $query = $this->db->query("YOUR QUERY"); |
| 37 | |
| 38 | if ($query->num_rows() > 0) |
| 39 | { |
| 40 | foreach ($query->result() as $row) |
| 41 | { |
| 42 | echo $row->title; |
| 43 | echo $row->name; |
| 44 | echo $row->body; |
| 45 | } |
| 46 | } |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 47 | |
| 48 | You can also pass a string to result() which represents a class to |
| 49 | instantiate for each result object (note: this class must be loaded) |
| 50 | |
| 51 | :: |
| 52 | |
| 53 | $query = $this->db->query("SELECT * FROM users;"); |
| 54 | |
| 55 | foreach ($query->result('User') as $user) |
| 56 | { |
| 57 | echo $user->name; // call attributes |
| 58 | echo $user->reverse_name(); // or methods defined on the 'User' class |
| 59 | } |
| 60 | |
| 61 | result_array() |
| 62 | =============== |
| 63 | |
James L Parry | e4a9f64 | 2014-11-24 16:20:53 -0800 | [diff] [blame] | 64 | This method returns the query result as a pure array, or an empty |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 65 | array when no result is produced. Typically you'll use this in a foreach |
| 66 | loop, like this:: |
| 67 | |
Joseph Wensley | f24f404 | 2011-10-06 22:53:29 -0400 | [diff] [blame] | 68 | $query = $this->db->query("YOUR QUERY"); |
| 69 | |
| 70 | foreach ($query->result_array() as $row) |
| 71 | { |
| 72 | echo $row['title']; |
| 73 | echo $row['name']; |
| 74 | echo $row['body']; |
| 75 | } |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 76 | |
James L Parry | 014bc89 | 2014-11-24 17:14:19 -0800 | [diff] [blame] | 77 | *********** |
| 78 | Result Rows |
| 79 | *********** |
| 80 | |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 81 | row() |
| 82 | ===== |
| 83 | |
James L Parry | e4a9f64 | 2014-11-24 16:20:53 -0800 | [diff] [blame] | 84 | This method returns a single result row. If your query has more than |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 85 | one row, it returns only the first row. The result is returned as an |
| 86 | **object**. Here's a usage example:: |
| 87 | |
Joseph Wensley | f24f404 | 2011-10-06 22:53:29 -0400 | [diff] [blame] | 88 | $query = $this->db->query("YOUR QUERY"); |
| 89 | |
| 90 | if ($query->num_rows() > 0) |
| 91 | { |
| 92 | $row = $query->row(); |
| 93 | |
| 94 | echo $row->title; |
| 95 | echo $row->name; |
| 96 | echo $row->body; |
| 97 | } |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 98 | |
| 99 | If you want a specific row returned you can submit the row number as a |
| 100 | digit in the first parameter:: |
| 101 | |
| 102 | $row = $query->row(5); |
| 103 | |
| 104 | You can also add a second String parameter, which is the name of a class |
| 105 | to instantiate the row with:: |
| 106 | |
Joseph Wensley | f24f404 | 2011-10-06 22:53:29 -0400 | [diff] [blame] | 107 | $query = $this->db->query("SELECT * FROM users LIMIT 1;"); |
| 108 | $query->row(0, 'User'); |
| 109 | |
| 110 | echo $row->name; // call attributes |
| 111 | echo $row->reverse_name(); // or methods defined on the 'User' class |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 112 | |
| 113 | row_array() |
Andrey Andreev | 69edc43 | 2012-12-04 13:32:16 +0200 | [diff] [blame] | 114 | =========== |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 115 | |
James L Parry | e4a9f64 | 2014-11-24 16:20:53 -0800 | [diff] [blame] | 116 | Identical to the above row() method, except it returns an array. |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 117 | Example:: |
| 118 | |
Joseph Wensley | f24f404 | 2011-10-06 22:53:29 -0400 | [diff] [blame] | 119 | $query = $this->db->query("YOUR QUERY"); |
| 120 | |
| 121 | if ($query->num_rows() > 0) |
| 122 | { |
| 123 | $row = $query->row_array(); |
| 124 | |
| 125 | echo $row['title']; |
| 126 | echo $row['name']; |
| 127 | echo $row['body']; |
| 128 | } |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 129 | |
| 130 | If you want a specific row returned you can submit the row number as a |
| 131 | digit in the first parameter:: |
| 132 | |
| 133 | $row = $query->row_array(5); |
| 134 | |
| 135 | In addition, you can walk forward/backwards/first/last through your |
| 136 | results using these variations: |
| 137 | |
Joseph Wensley | f24f404 | 2011-10-06 22:53:29 -0400 | [diff] [blame] | 138 | | **$row = $query->first_row()** |
| 139 | | **$row = $query->last_row()** |
| 140 | | **$row = $query->next_row()** |
| 141 | | **$row = $query->previous_row()** |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 142 | |
| 143 | By default they return an object unless you put the word "array" in the |
| 144 | parameter: |
| 145 | |
Joseph Wensley | f24f404 | 2011-10-06 22:53:29 -0400 | [diff] [blame] | 146 | | **$row = $query->first_row('array')** |
| 147 | | **$row = $query->last_row('array')** |
| 148 | | **$row = $query->next_row('array')** |
| 149 | | **$row = $query->previous_row('array')** |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 150 | |
James L Parry | 8b85526 | 2014-11-24 17:29:04 -0800 | [diff] [blame] | 151 | .. note:: all the methods above will load the whole result into memory |
| 152 | (prefetching) use unbuffered_row() for processing large result sets. |
Juan Ignacio Borda | d981e29 | 2012-05-18 18:29:24 -0300 | [diff] [blame] | 153 | |
Andrey Andreev | 69edc43 | 2012-12-04 13:32:16 +0200 | [diff] [blame] | 154 | unbuffered_row() |
| 155 | ================ |
Juan Ignacio Borda | d981e29 | 2012-05-18 18:29:24 -0300 | [diff] [blame] | 156 | |
Andrey Andreev | 69edc43 | 2012-12-04 13:32:16 +0200 | [diff] [blame] | 157 | This method returns a single result row without prefetching the whole |
| 158 | result in memory as ``row()`` does. If your query has more than one row, |
| 159 | it returns the current row and moves the internal data pointer ahead. |
Juan Ignacio Borda | d981e29 | 2012-05-18 18:29:24 -0300 | [diff] [blame] | 160 | |
Derek Jones | ce79be0 | 2012-06-25 23:23:46 -0700 | [diff] [blame] | 161 | :: |
Juan Ignacio Borda | d981e29 | 2012-05-18 18:29:24 -0300 | [diff] [blame] | 162 | |
| 163 | $query = $this->db->query("YOUR QUERY"); |
| 164 | |
Juan Ignacio Borda | da7c9e0 | 2012-05-19 09:42:40 -0300 | [diff] [blame] | 165 | while ($row = $query->unbuffered_row()) |
Juan Ignacio Borda | d981e29 | 2012-05-18 18:29:24 -0300 | [diff] [blame] | 166 | { |
| 167 | echo $row->title; |
| 168 | echo $row->name; |
| 169 | echo $row->body; |
| 170 | } |
| 171 | |
Andrey Andreev | 69edc43 | 2012-12-04 13:32:16 +0200 | [diff] [blame] | 172 | You can optionally pass 'object' (default) or 'array' in order to specify |
| 173 | the returned value's type:: |
| 174 | |
| 175 | $query->unbuffered_row(); // object |
| 176 | $query->unbuffered_row('object'); // object |
| 177 | $query->unbuffered_row('array'); // associative array |
| 178 | |
James L Parry | e4a9f64 | 2014-11-24 16:20:53 -0800 | [diff] [blame] | 179 | ********************* |
| 180 | Result Helper Methods |
| 181 | ********************* |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 182 | |
James L Parry | e4a9f64 | 2014-11-24 16:20:53 -0800 | [diff] [blame] | 183 | **$query->num_rows()** |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 184 | |
| 185 | The number of rows returned by the query. Note: In this example, $query |
| 186 | is the variable that the query result object is assigned to:: |
| 187 | |
Joseph Wensley | f24f404 | 2011-10-06 22:53:29 -0400 | [diff] [blame] | 188 | $query = $this->db->query('SELECT * FROM my_table'); |
| 189 | |
| 190 | echo $query->num_rows(); |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 191 | |
Timothy Warren | 69bb408 | 2012-03-05 12:49:55 -0500 | [diff] [blame] | 192 | .. note:: |
Andrey Andreev | fdb7541 | 2012-03-05 16:32:17 +0200 | [diff] [blame] | 193 | Not all database drivers have a native way of getting the total |
| 194 | number of rows for a result set. When this is the case, all of |
| 195 | the data is prefetched and count() is manually called on the |
James L Parry | e4a9f64 | 2014-11-24 16:20:53 -0800 | [diff] [blame] | 196 | resulting array in order to achieve the same methodality. |
Andrey Andreev | fdb7541 | 2012-03-05 16:32:17 +0200 | [diff] [blame] | 197 | |
James L Parry | e4a9f64 | 2014-11-24 16:20:53 -0800 | [diff] [blame] | 198 | **$query->num_fields()** |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 199 | |
| 200 | The number of FIELDS (columns) returned by the query. Make sure to call |
James L Parry | e4a9f64 | 2014-11-24 16:20:53 -0800 | [diff] [blame] | 201 | the method using your query result object:: |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 202 | |
Joseph Wensley | f24f404 | 2011-10-06 22:53:29 -0400 | [diff] [blame] | 203 | $query = $this->db->query('SELECT * FROM my_table'); |
| 204 | |
| 205 | echo $query->num_fields(); |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 206 | |
James L Parry | e4a9f64 | 2014-11-24 16:20:53 -0800 | [diff] [blame] | 207 | **$query->free_result()** |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 208 | |
| 209 | It frees the memory associated with the result and deletes the result |
| 210 | resource ID. Normally PHP frees its memory automatically at the end of |
| 211 | script execution. However, if you are running a lot of queries in a |
| 212 | particular script you might want to free the result after each query |
| 213 | result has been generated in order to cut down on memory consumptions. |
| 214 | Example:: |
| 215 | |
Joseph Wensley | f24f404 | 2011-10-06 22:53:29 -0400 | [diff] [blame] | 216 | $query = $this->db->query('SELECT title FROM my_table'); |
| 217 | |
| 218 | foreach ($query->result() as $row) |
| 219 | { |
| 220 | echo $row->title; |
| 221 | } |
| 222 | $query->free_result(); // The $query result object will no longer be available |
| 223 | |
| 224 | $query2 = $this->db->query('SELECT name FROM some_table'); |
| 225 | |
| 226 | $row = $query2->row(); |
| 227 | echo $row->name; |
Andrey Andreev | fdb7541 | 2012-03-05 16:32:17 +0200 | [diff] [blame] | 228 | $query2->free_result(); // The $query2 result object will no longer be available |
Andrey Andreev | 69edc43 | 2012-12-04 13:32:16 +0200 | [diff] [blame] | 229 | |
James L Parry | e4a9f64 | 2014-11-24 16:20:53 -0800 | [diff] [blame] | 230 | **data_seek()** |
Andrey Andreev | 69edc43 | 2012-12-04 13:32:16 +0200 | [diff] [blame] | 231 | |
| 232 | This method sets the internal pointer for the next result row to be |
| 233 | fetched. It is only useful in combination with ``unbuffered_row()``. |
| 234 | |
| 235 | It accepts a positive integer value, which defaults to 0 and returns |
| 236 | TRUE on success or FALSE on failure. |
| 237 | |
| 238 | :: |
| 239 | |
| 240 | $query = $this->db->query('SELECT `field_name` FROM `table_name`'); |
| 241 | $query->data_seek(5); // Skip the first 5 rows |
| 242 | $row = $query->unbuffered_row(); |
| 243 | |
| 244 | .. note:: Not all database drivers support this feature and will return FALSE. |
James L Parry | 1516219 | 2014-12-05 23:40:47 -0800 | [diff] [blame] | 245 | Most notably - you won't be able to use it with PDO. |
| 246 | |
| 247 | *************** |
| 248 | Class Reference |
| 249 | *************** |
| 250 | |
| 251 | .. class:: CI_DB_result |
| 252 | |
| 253 | .. method:: custom_result_object($class_name) |
| 254 | |
| 255 | :param string $class_name: Class name for the results |
| 256 | :returns: Array of objects of type $class_name |
| 257 | :rtype: array of $class_name |
| 258 | |
| 259 | Return the query results as an array of the specified class. |
| 260 | |
| 261 | .. method:: custom_row_object($n, $type) |
| 262 | |
| 263 | :param int $n: Index of the results row to return |
| 264 | :param string $class_name: Class name for the results |
| 265 | :returns: Object of type $type |
| 266 | :rtype: $type |
| 267 | |
| 268 | Return a specific row from the query results as an object of |
| 269 | the specified class. |
| 270 | |
James L Parry | 8b875ce | 2014-12-08 03:00:31 -0800 | [diff] [blame^] | 271 | .. method:: data_seek([$n = 0]) |
James L Parry | 1516219 | 2014-12-05 23:40:47 -0800 | [diff] [blame] | 272 | |
| 273 | :param int $n: Index of the results row to be returned next |
| 274 | :returns: TRUE on success, FALSE otherwise |
| 275 | :rtype: bool |
| 276 | |
| 277 | Moves the internal results row pointer to the desired offset. |
| 278 | Usage: see `Result Helper Methods`_. |
| 279 | |
| 280 | .. method:: field_data() |
| 281 | |
| 282 | :returns: Array of objects containing field meta-data. |
| 283 | :rtype: array |
| 284 | |
| 285 | Generates an array of objects containing field meta-data. |
| 286 | |
James L Parry | 8b875ce | 2014-12-08 03:00:31 -0800 | [diff] [blame^] | 287 | .. method:: first_row([$type = 'object']) |
James L Parry | 1516219 | 2014-12-05 23:40:47 -0800 | [diff] [blame] | 288 | |
| 289 | :param string $type: Type of result requested - array, object, or class name |
| 290 | :returns: First row of result set |
| 291 | :rtype: mixed |
| 292 | |
| 293 | Returns the "first" row, as an array, generic object, or |
| 294 | object of a specific class |
| 295 | |
| 296 | .. method:: free_result() |
| 297 | |
| 298 | :rtype: void |
| 299 | |
| 300 | Free the result. |
| 301 | Usage: see `Result Helper Methods`_. |
| 302 | |
James L Parry | 8b875ce | 2014-12-08 03:00:31 -0800 | [diff] [blame^] | 303 | .. method:: last_row([$type = 'object']) |
James L Parry | 1516219 | 2014-12-05 23:40:47 -0800 | [diff] [blame] | 304 | |
| 305 | :param string $type: Type of result requested - array, object, or class name |
| 306 | :returns: Last row of result set |
| 307 | :rtype: mixed |
| 308 | |
| 309 | Returns the "last" row, as an array, generic object, or |
| 310 | object of a specific class |
| 311 | |
| 312 | .. method:: list_fields() |
| 313 | |
| 314 | :returns: Array of column names |
| 315 | :rtype: array |
| 316 | |
| 317 | Fetch Field Names |
| 318 | |
James L Parry | 8b875ce | 2014-12-08 03:00:31 -0800 | [diff] [blame^] | 319 | .. method:: next_row([$type = 'object']) |
James L Parry | 1516219 | 2014-12-05 23:40:47 -0800 | [diff] [blame] | 320 | |
| 321 | :param string $type: Type of result requested - array, object, or class name |
| 322 | :returns: "Next" row of result set, NULL if there isn't one |
| 323 | :rtype: mixed |
| 324 | |
| 325 | Returns the "next" row, as an array, generic object, or |
| 326 | object of a specific class |
| 327 | |
| 328 | .. method:: num_fields() |
| 329 | |
| 330 | :returns: Number of fields in the result set |
| 331 | :rtype: integer |
| 332 | |
| 333 | Number of fields in the result set. |
| 334 | Usage: see `Result Helper Methods`_. |
| 335 | |
| 336 | .. method:: num_rows() |
| 337 | |
| 338 | :returns: Number of rows in the result set |
| 339 | :rtype: integer |
| 340 | |
| 341 | Number of rows in the result set. |
| 342 | Usage: see `Result Helper Methods`_. |
| 343 | |
James L Parry | 8b875ce | 2014-12-08 03:00:31 -0800 | [diff] [blame^] | 344 | .. method:: previous_row([$type = 'object']) |
James L Parry | 1516219 | 2014-12-05 23:40:47 -0800 | [diff] [blame] | 345 | |
| 346 | :param string $type: Type of result requested - array, object, or class name |
| 347 | :returns: "Previous" row of result set, NULL if there isn't one |
| 348 | :rtype: mixed |
| 349 | |
| 350 | Returns the "previous" row, as an array, generic object, or |
| 351 | object of a specific class |
| 352 | |
James L Parry | 8b875ce | 2014-12-08 03:00:31 -0800 | [diff] [blame^] | 353 | .. method:: result([$type = 'object']) |
James L Parry | 1516219 | 2014-12-05 23:40:47 -0800 | [diff] [blame] | 354 | |
| 355 | :param string $type: Type of result requested - array, object, or class name |
| 356 | :returns: Query results as the specified type |
| 357 | :rtype: mixed |
| 358 | |
| 359 | Query result. Acts as a wrapper function for the result_array, |
| 360 | result_object and custom_result_object methods. |
| 361 | Usage: see `Result Arrays`_. |
| 362 | |
| 363 | .. method:: result_array() |
| 364 | |
| 365 | :returns: Query results as an associative array |
| 366 | :rtype: array |
| 367 | |
| 368 | Returns the query results as an array of rows, where each |
| 369 | row is itself an associative array. |
| 370 | Usage: see `Result Arrays`_. |
| 371 | |
| 372 | .. method:: result_object() |
| 373 | |
| 374 | :returns: Query results as an array of objects |
| 375 | :rtype: array |
| 376 | |
| 377 | Returns the query results as an array of rows, where each |
| 378 | row is an object |
| 379 | |
James L Parry | 8b875ce | 2014-12-08 03:00:31 -0800 | [diff] [blame^] | 380 | .. method:: row([$n = 0[, $type = 'object']]) |
James L Parry | 1516219 | 2014-12-05 23:40:47 -0800 | [diff] [blame] | 381 | |
| 382 | :param integer $n: Index of the query results row to be returned |
| 383 | :param string $type: Type of result requested - array, object, or class name |
| 384 | :returns: Requested row of result set |
| 385 | :rtype: mixed |
| 386 | |
| 387 | Wrapper for result_row_array, result_row_object, and |
| 388 | custom_row_object. |
| 389 | Usage: see `Result Rows`_. |
| 390 | |
James L Parry | 8b875ce | 2014-12-08 03:00:31 -0800 | [diff] [blame^] | 391 | .. method:: row_array([$n = 0]) |
James L Parry | 1516219 | 2014-12-05 23:40:47 -0800 | [diff] [blame] | 392 | |
| 393 | :param integer $n: Index of the query results row to be returned |
| 394 | :returns: Requested row of result set |
| 395 | :rtype: array |
| 396 | |
| 397 | Returns requested result row as an associative array. |
| 398 | Usage: see `Result Rows`_. |
| 399 | |
James L Parry | 8b875ce | 2014-12-08 03:00:31 -0800 | [diff] [blame^] | 400 | .. method:: row_object([$n = 0]) |
James L Parry | 1516219 | 2014-12-05 23:40:47 -0800 | [diff] [blame] | 401 | |
| 402 | :param integer $n: Index of the query results row to be returned |
| 403 | :returns: Requested row of result set |
| 404 | :rtype: object |
| 405 | |
| 406 | Returns requested result row as an object |
| 407 | |
James L Parry | 8b875ce | 2014-12-08 03:00:31 -0800 | [diff] [blame^] | 408 | .. method:: set_row($key[, $value = NULL]) |
James L Parry | 1516219 | 2014-12-05 23:40:47 -0800 | [diff] [blame] | 409 | |
| 410 | :param mixed $key: Column index or array of key/value pairs |
| 411 | :param mixed $value: Result to assign to a column if the key is an index |
| 412 | :rtype: void |
| 413 | |
| 414 | Assigns an item into a particular column slot |
| 415 | |
James L Parry | 8b875ce | 2014-12-08 03:00:31 -0800 | [diff] [blame^] | 416 | .. method:: unbuffered_row([$type = 'object']) |
James L Parry | 1516219 | 2014-12-05 23:40:47 -0800 | [diff] [blame] | 417 | |
| 418 | :param string $type: Type of result requested - array, object, or class name |
| 419 | :returns: Requested row of result set |
| 420 | :rtype: mixed |
| 421 | |
| 422 | Fetches the next result row and returns it in the requested |
| 423 | form. |
| 424 | Usage: see `Result Rows`_. |