我怎样才能在
mysql中结合这两个查询?
select count(*) as entry_count from tbl_entries where user_id = x
和
select username,avatar from tbl_users where user_id = x
谢谢!
解决方法
select username,avatar,(select count(*) from tbl_entries where user_id = x) as entry_count from tbl_users where user_id = x