Home >Database >Mysql Tutorial >一个mysql问题,不知道怎么写了

一个mysql问题,不知道怎么写了

WBOY
WBOYOriginal
2016-06-06 09:41:181033browse

mysql

SELECT
u.name NAME,
u.phone phone,
i.level LEVEL,
i.user_id,
COUNT(1) total
FROM
t_user u,t_invitationcode i ,(SELECT COUNT(*),user_id FROM t_invitationcode it WHERE it.user_id=i.user_id) t3
WHERE u.id=i.user_id
不知道怎么写了

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn