1
0
mirror of synced 2025-01-18 22:41:43 +03:00
doctrine2/manual/codes/Basic Components - Query - LIMIT and OFFSET - limiting the query results.php

12 lines
239 B
PHP
Raw Normal View History

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