当前位置:网站首页>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
边栏推荐
- Istio部署:快速上手微服务,
- xml开发方式下AutowiredAnnotationBeanPostProcessor的注册时机
- Codeworks round 802 (Div. 2) pure supplementary questions
- 移动机器人路径规划:人工势场法[通俗易懂]
- SQLite 3.39.0 发布,支持右外连接和全外连接
- 4274. 后缀表达式-二叉表达式树
- [pytorch learning notes] tensor
- golang:[]byte转string
- 452-strcpy、strcat、strcmp、strstr、strchr的实现
- End-to-End Object Detection with Transformers(DETR)论文阅读与理解
猜你喜欢
KT148A语音芯片ic的硬件设计注意事项
AcWing 340. 通信线路 题解(二分+双端队列BFS求最短路)
450 Shenxin Mianjing 1
基于SSM实现网上购物商城系统
AcWing 342. 道路与航线 题解 (最短路、拓扑排序)
Detailed tutorial on installing stand-alone redis
xml开发方式下AutowiredAnnotationBeanPostProcessor的注册时机
Zabbix5 client installation and configuration
机器学习笔记 - 时间序列预测研究:法国香槟的月销量
Istio部署:快速上手微服务,
随机推荐
Usage of ieda refactor
Golang并发编程——goroutine、channel、sync
LeetCode 0871.最低加油次数 - 类似于POJ2431丛林探险
AcWing 342. 道路与航线 题解 (最短路、拓扑排序)
checklistbox控件用法总结
Idea editor removes SQL statement background color SQL statement warning no data sources are configured to run this SQL And SQL dialect is not config
451-memcpy、memmove、memset的实现
PHP asymmetric encryption method private key and public key encryption and decryption method
A4988 drive stepper motor "recommended collection"
AcWing 343. 排序 题解(floyd性质实现传递闭包)
使用xml文件打印mybaties-log插件的方式
rxjs Observable 自定义 Operator 的开发技巧
机器学习笔记 - 时间序列预测研究:法国香槟的月销量
AcWing 1125. Cattle travel problem solution (shortest path, diameter)
AcWing 342. Road and route problem solving (shortest path, topological sorting)
Microservice technology - distributed global ID in high concurrency
What is the MySQL backup suffix_ MySQL backup restore
多端小程序开发有什么好处?覆盖百度小程序抖音小程序微信小程序开发,抢占多平台流量红利
How to print mybats log plug-in using XML file
AcWing 1125. 牛的旅行 题解(最短路、直径)