File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -660,8 +660,7 @@ public function has($tableName)
660660 *
661661 * @param string $tableName The name of the database table to work with.
662662 * @param array $tableData Array of data to update the desired row.
663- * @param int|array $numRows Array to define SQL limit in format Array ($count, $offset)
664- * or only $count
663+ * @param int $numRows Limit on the number of rows that can be updated.
665664 *
666665 * @return bool
667666 */
Original file line number Diff line number Diff line change @@ -152,6 +152,12 @@ else
152152 echo 'update failed: ' . $db->getLastError();
153153```
154154
155+ ` update() ` also support limit parameter:
156+ ``` php
157+ $db->update ('users', $data, 10);
158+ // Gives: UPDATE users SET ... LIMIT 10
159+ ```
160+
155161### Select Query
156162After any select/get function calls amount or returned rows is stored in $count variable
157163``` php
You can’t perform that action at this time.
0 commit comments