What command select
shows me only those comments from a single user?
For example: I have a Post
table where you store the comments of each user (user_1, user_2, user_3), but would like to show only user_1 comments.
Comments table is called Post
:
ID_POST
ID_USER (chave estrangeira para a tabela Users, campo ID_USER)
mensagem
data
Users table is called Users
:
ID_USER
username
avatar