Ok here's the thing. I need to insert multiple rows in one column from table A to one row in table B using MySql
Here's an example of what im trying to achieve:
Table A
id | data
1 | name
2 | date
3 | more
From table A, i need to select all the rows in the data column and insert that data in one row of 'data' column of table B like this:
Table B
id | data
1 | name, date, more
Here is my current code, however it isn't working and shows me an error subquery returns more than one row
INSERT INTO B (data) values (SELECT data from A)
Is there any way i can do this? Please excuse as i am a newbie :P
Thanks in advance!