当前位置:网站首页>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>
边栏推荐
- Where do people get their top energy?
- 备战数学建模30-回归分析2
- Is the account opening link given by the broker manager safe? Who can I open an account with?
- 【 Native cloud】 Éditeur ivx Programmable par tout le monde
- Deploy the flask environment using the pagoda panel
- Is it safe to open an online stock account? Somebody give me an answer
- VMware partial settings
- 使用 Abp.Zero 搭建第三方登录模块(二):服务端开发
- 信息学奥赛一本通 1400:统计单词数 (字符串匹配)
- 备战数学建模32-相关性分析2
猜你喜欢
Sword finger offer 21.57.58 I Double pointer (simple)
710. 黑名单中的随机数
Login authentication service
15 bs对象.节点名称.节点名称.string 获取嵌套节点内容
'coach, I want to play basketball!'—— AI Learning Series booklet for system students
Matplotlib common operations
Caelus - full scene offline mixed Department solution
The JVM outputs GC logs, causing the JVM to get stuck. I am stupid
赠书 | 《认知控制》:我们的大脑如何完成任务?
ArcGIS batch render layer script
随机推荐
使用 Abp.Zero 搭建第三方登录模块(二):服务端开发
登录认证服务
Introduction to basic knowledge of C language (Daquan) [suggestions collection]
Combat readiness mathematical modeling 32 correlation analysis 2
STM32F1和GD32F1有什么区别?
手机股票注册开户安全吗,有没有什么风险?
'教练,我想打篮球!' —— 给做系统的同学们准备的 AI 学习系列小册
teamviewer显示设备数量上限解决方法
Summary of decimal point of amount and price at work and pit
工作上对金额价格类小数点的总结以及坑
Excerpt from three body
What is the ranking of Guosen Securities? Is it safe to open a stock account?
这才是优美的文件系统挂载方式,亲测有效
Attention meets geometry: geometry guided spatiotemporal attention consistency self supervised monocular depth estimation
房东拿租金去还房贷是天经地义的嘛
A标签去掉下划线
Attention meets Geometry:几何引导的时空注意一致性自监督单目深度估计
Datasets dataset class (2)
[solo π] ADB connects multiple mobile phones
Electron