当前位置:网站首页>MySQL function
MySQL function
2022-07-02 19:39:00 【ekkcole】
Splicing function :concat(str,‘ Spliced characters ’)
Keep the data on the left :LEFT(str,0)
Keep the data on the right :RIGHT(str,0)
Empty function and assign value :IFNULL(str,‘ Customize ’)
Splicing function :CONCAT_WS(str,str,…)
Splicing function after grouping :GROUP_CONCAT(str,str…)
SELECT
concat(LEFT(t2.task_time,4),' year ') year,
RIGHT(t2.task_time,5) date,
IFNULL(GROUP_CONCAT( concat( t3.custom_inputs_name, '(', t3.num, t3.unit_name, ')' ) ),' No record yet ') detail,
CONCAT_WS(',',t2.image1,t2.image2,t2.image3) images
FROM
tb_farming_plot t1
LEFT JOIN tb_farming_manage t2 ON t2.record_id = t1.record_id
LEFT JOIN tb_farming_manage_detail t3 ON t3.manage_id = t2.id
GROUP BY
t2.id
HAVING
count( t2.id )>= 1
ORDER BY t2.task_time desc
result 
边栏推荐
- 线程应用实例
- AcWing 1125. 牛的旅行 题解(最短路、直径)
- 股票证券公司排名,有安全保障吗
- AcWing 1137. 选择最佳线路 题解(最短路)
- R语言使用econocharts包创建微观经济或宏观经济图、indifference函数可视化无差异曲线(indifference curve)
- End-to-End Object Detection with Transformers(DETR)论文阅读与理解
- Zabbix5 client installation and configuration
- Registration opportunity of autowiredannotationbeanpostprocessor under annotation development mode
- How to print mybats log plug-in using XML file
- MySQL
猜你喜欢

《MongoDB入门教程》第03篇 MongoDB基本概念

xml开发方式下AutowiredAnnotationBeanPostProcessor的注册时机

AcWing 342. Road and route problem solving (shortest path, topological sorting)

Web2.0的巨头纷纷布局VC,Tiger DAO VC或成抵达Web3捷径

机器学习笔记 - 时间序列预测研究:法国香槟的月销量

KT148A语音芯片ic的硬件设计注意事项

How to avoid duplicate data in gaobingfa?

Registration opportunity of autowiredannotationbeanpostprocessor under annotation development mode

Refactoring: improving the design of existing code (Part 1)

Registration opportunity of autowiredannotationbeanpostprocessor in XML development mode
随机推荐
Registration opportunity of autowiredannotationbeanpostprocessor in XML development mode
Horizontal ultra vires and vertical ultra vires [easy to understand]
从20s优化到500ms,我用了这三招
Data dimensionality reduction factor analysis
Use cheat engine to modify money, life and stars in Kingdom rush
Windows2008r2 installing php7.4.30 requires localsystem to start the application pool, otherwise 500 error fastcgi process exits unexpectedly
Windows2008R2 安装 PHP7.4.30 必须 LocalSystem 启动应用程序池 不然500错误 FastCGI 进程意外退出
Istio部署:快速上手微服务,
Refactoring: improving the design of existing code (Part 1)
451 implementation of memcpy, memmove and memset
zabbix5客户端安装和配置
From 20s to 500ms, I used these three methods
字典
GMapping代码解析[通俗易懂]
Correspondence between pytoch version, CUDA version and graphics card driver version
MySQL advanced (Advanced) SQL statement
mysql备份后缀是什么_mysql备份还原
Web2.0的巨头纷纷布局VC,Tiger DAO VC或成抵达Web3捷径
Postman下载安装
移动机器人路径规划:人工势场法[通俗易懂]