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

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

WBOY
Release: 2016-06-06 09:41:18
Original
1028 people have browsed it

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
不知道怎么写了

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template