1
0
mirror of synced 2024-12-15 07:36:03 +03:00
doctrine2/manual/codes/Basic Components - Query - LIMIT and OFFSET - limiting the query results.php

12 lines
239 B
PHP

<?php
// find the first ten users and their emails
$coll = $conn->query("FROM User, User.Email LIMIT 10");
// find the first ten users starting from the user number 5
$coll = $conn->query("FROM User LIMIT 10 OFFSET 5");
?>