By lehuuphuc on
how do I create a query like this with db_select:
select u.uid, u.name, count(n.id) from users u
join node n where u.uid = n.uid
group by u.uid
how do I create a query like this with db_select:
select u.uid, u.name, count(n.id) from users u
join node n where u.uid = n.uid
group by u.uid
Comments
How about $query =
How about
It works. Thanks man.
It works. Thanks man.
$result->execute()->rowCount(
$result->execute()->rowCount();
you can count the row after the query.