1
0
mirror of synced 2025-01-18 06:21:40 +03:00

added output example of aggregate

This commit is contained in:
hansbrix 2007-04-12 17:09:14 +00:00
parent f5223491e6
commit 3b1a2e77d4

View File

@ -8,4 +8,7 @@ $query->select('u.*, COUNT(p.id) num_posts')
->where('u.id = ?', 1)
->groupby('u.id')
->execute();
echo $query->Posts[0]->num_posts . ' posts found';
?>