sql
CxToBj
这个作者很懒,什么都没留下…
展开
-
mysql把两个表中统计一起展示
SELECT * from ( SELECT bwp.pattern_id as patternId ,tp.id as tpId,p.`name` as pname,sum( IF(pi.type = 1, 1, 0) ) as whiteApp ,rt.name as teName, tp.b_time as bTime,tp.e_time as eTime FROM ro_template_pattern as tp ..原创 2022-02-09 13:03:14 · 981 阅读 · 0 评论 -
统计各个机构的床位个数
SELECT * from ( SELECT t.id, t.name, t.province, p.name AS provinceName, t.city, c.`name` AS cityName, t.area, a.`name` AS areaName, t.street, s.`name` AS streetName, t.address AS address,t.remarks, t.community_type AS communityT..原创 2021-09-03 10:43:31 · 183 阅读 · 0 评论