added output example of aggregate
This commit is contained in:
parent
f5223491e6
commit
3b1a2e77d4
@ -8,4 +8,7 @@ $query->select('u.*, COUNT(p.id) num_posts')
|
|||||||
->where('u.id = ?', 1)
|
->where('u.id = ?', 1)
|
||||||
->groupby('u.id')
|
->groupby('u.id')
|
||||||
->execute();
|
->execute();
|
||||||
|
|
||||||
|
echo $query->Posts[0]->num_posts . ' posts found';
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user