当前位置:网站首页>Use of subqueries
Use of subqueries
2022-06-26 14:50:00 【All eyes are on it】
<!-- Query list -->
<select id="selMap" parameterType="java.util.HashMap" resultType="java.util.HashMap">
SELECT
a.id,
a.building_name,
a.number_floor,
DATE_FORMAT( a.create_time, "%Y-%m-%d " ) AS create_time,
( SELECT count( 1 ) FROM yz_install_mountingpoint WHERE name_id = a.id ) AS 'cOunt',
( SELECT count( 1 ) FROM yz_install_placefloor WHERE building_name = a.id ) AS 'cOuntfloor',
address,
dept_name
FROM
yz_install_placemanage a,
sys_dept d
WHERE
d.dept_id = a.dept_id
<include refid="selwhere"/>
LIMIT #{StarRow},#{PageSize}
</select>边栏推荐
- 工作上对金额价格类小数点的总结以及坑
- Flex & Bison 开始
- Online bull Blogger
- Atcoder 238
- ArcGIS secondary development method - layer related operations (add, modify)
- Login authentication service
- oracle11g数据库导入导出方法教程[通俗易懂]
- Matplotlib common operations
- Unity 利用Skybox Panoramic着色器制作全景图预览有条缝隙问题解决办法
- Use abp Zero builds a third-party login module (I): Principles
猜你喜欢

Setup instance of layout manager login interface

量化框架backtrader之一文读懂observer观测器

印尼投资部长:鸿海考虑在其新首都建立电动公交系统、城市物联网

赠书 | 《认知控制》:我们的大脑如何完成任务?

【云原生】 ”人人皆可“ 编程的无代码 iVX 编辑器

Combat readiness mathematical modeling 32 correlation analysis 2

Mark: unity3d cannot select resources in the inspector, that is, project locking

NAACL2022:(代码实践)好的视觉引导促进更好的特征提取,多模态命名实体识别(附源代码下载)...

Unity uses skybox panoramic shader to make panorama preview. There is a gap. Solution

备战数学建模31-数据插值与曲线拟合3
随机推荐
Two point answer, 01 score planning (mean / median conversion), DP
在云服务器中云磁盘如何挂载
Sectigo的IP证书申请流程
'教练,我想打篮球!' —— 给做系统的同学们准备的 AI 学习系列小册
JVM 输出 GC 日志导致 JVM 卡住,我 TM 人傻了
Mathematical modeling of war preparation 30 regression analysis 2
【async/await】--异步编程最终解决方案
券商经理给的开户链接办理股票开户安全吗?我想开个户
【使用yarn运行报错】The engine “node“ is incompatible with this module.
Combat readiness mathematical modeling 31 data interpolation and curve fitting 3
It's natural for the landlord to take the rent to repay the mortgage
备战数学建模30-回归分析2
通俗语言说BM3D
挖财注册开户安全吗,有没有什么风险?
vmware部分设置
Electron
Excel-VBA 快速上手(二、条件判断和循环)
How to mount cloud disks in ECS
Flex & Bison 开始
聊聊 RPA 方向的规划:简单有价值的事情长期坚持做