I don't understand how I could concatenate the results of several rows into one.
Update :
The solution should be easily exportable to the main database servers (MYSQL, postgresql, sql server, oracle..)
Context :
Table 1 :
id_core int(11) UNSIGNED
definition varchar(32) utf8_general_ci
Table 2 :
id_core int(11) UNSIGNED
engine_type varchar(32) utf8_general_ci
Here is an example of how they are filled :
Table 1 :
1 blabblah
1 blahblah second / different component
1 blahblah third / different component
2 other stuffs
2 other stuffs on another component
Table 2 :
1 engine type1
2 engine_type2
What do I currently get :
select * from table1
join table2
on table1.id_core = table2.id_core
where table1.id_core = 1
And it leads to :
1 - engine_type1 - blabblah
1 - engine_type1 - blahblah second / different component
1 - engine_type1 - blahblah third / different component
Now, I would like to reduce the number of rows retrieved and get :
1 - engine_tyoe1 - blabblah - blahblah second / different component - blahblah third / different component
I would then get only one row instead of three and this rows already has all the attributes in it.
Is it even possible ?
Thanks