1
0
mirror of synced 2024-12-13 22:56:04 +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-24 01:08:06 +04:00
<?php
// find the first ten users and their emails
$coll = $conn->query("FROM User, User.Email LIMIT 10");
2006-07-24 01:08:06 +04:00
// find the first ten users starting from the user number 5
$coll = $conn->query("FROM User LIMIT 10 OFFSET 5");
2006-07-24 01:08:06 +04:00
?>