How can I create a comment on the table of a blog based on the function code of a blog when I add an article ?? Let's talk about your ideas. I mean to add the corresponding table at the same time when adding an article ?? ------ Solution -------------------- the trigger function in the database can implement your idea. But what I don't understand is why you don't create a comment table to store the article id and comment content. When obtaining comments from an article, use the functional code of the article about a blog.
When adding an article, how can I create a comment on the table of the article based on this article ?? Let's talk about your ideas.
I mean, when adding an article, add the corresponding table at the same time ??
------ Solution --------------------
The trigger function in the database can implement your ideas.
But what I don't understand is why you don't create a comment table to store the article id and comment content. When you get a comment on an article, you cannot get the comment based on the article id.
Why does an article correspond to a comment table?
------ Solution --------------------
If you do that. The database will pop up.