// 该函数意义:查询结果拼接
select GROUP_CONCAT('时间:',a.year,'/',a.day)
from
tableA a,
tbaleB b
where a.Id = b.Id and a.describe = 'date' and b.name='appName'
tableA结构及数据:
id | day | describe | year |
---|---|---|---|
001 | 03/15 | date | 2021 |
tableB结构及数据:
id | name | value |
---|---|---|
001 | appName | 2021 |
// 查询结果:
时间:2021/03/15