字符串“求和“sql语句怎样写?
数据表如下:
table a table b
people_id station_id | station_id station_name
01 1 1 物理教师
01 2 | 2 副校长
01 3 | 3 教研组长
table c
people_id people_name age ....
01 张三 40
现在想要如下结果,只用sql语句(不用存储过程)
people_id people_name age station ....
01 张三 40 物理教师、副校长、教研组长
谢谢,因为要用到通用的查询条件添加,所以不能用存贮过程。