|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-01-01 23:51 UTC] jani@php.net
-Package: Feature/Change Request
+Package: PDO related
[2011-12-24 06:33 UTC] ssufficool@php.net
[2013-05-31 05:18 UTC] ssufficool@php.net
-Status: Open
+Status: Wont fix
[2013-05-31 05:18 UTC] ssufficool@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 19:00:01 2025 UTC |
Description: ------------ A PDO method for limit the number of rows returned from a query, independent of the used DBMS. This feature is available in DBMS abstraction packages, like ADODB (and in Java JDBC too). Something like this: function setLimit($limit, $offset); Reproduce code: --------------- $con = new PDO('mysql:host=localhost;dbname=test', $user, $pass); $stmt = $con->prepare("SELECT * FROM table"); $stmt->setLimit(10, 2); Expected result: ---------------- 10 tableresults starting from position 2 Actual result: -------------- Function not exists yet.