当前位置:Gxlcms > 数据库问题 > mysql语句写法(左连与子查询结合)实战

mysql语句写法(左连与子查询结合)实战

时间:2021-07-01 10:21:17 帮助过:21人阅读

(

select 

count(vipid) as people,

card_number 

from vip 

group by card_number

) as v

on 

c.card_number=v.card_number 

left join 

`vip_type` as t 

on

c.type_id=t.type_id 

where 

c.store_key=‘556655‘;


mysql语句写法(左连与子查询结合)实战

标签:msyql

人气教程排行