Can anyone please tell/suggest me how can i store and retrieve comments multiple/different values in/from the single column?
Scenario: Some user makes a post and rest of the users are posting comments on it.
Here i have a table names “posts” in MySQL database with the following columns “id”,”posted_by”,”post” and “comments”
Now i’m stuck in the comments part where i’m trying to store the comments made by different people in the single column and retrieving and displaying comments them right below the post.
I thought of using ALTER and create new columns for different comments but i don’t think thats a good idea thats why i’m posting this question.
Thank You
Just create another table
and remove
commentsfrom POST table, so now POST can have many COMMENT