0
Which command select
shows me only those comments from a single user?
For example: I have a table Post
where it stores the comments of each user (usuario_1, usuario_2, usuario_3), but would like to show only the comments of the user.
Table of comments is called Post
:
ID_POST
ID_USER (chave estrangeira para a tabela Users, campo ID_USER)
mensagem
data
Table of users is called Users
:
ID_USER
username
avatar
I think I should be more specific kkkk, I have a users table and another post table, the post table has column = id_post, column = foreign id_user key which is the id_user of the users table, has message column, column = data_post, now the users table has column = id_user, column = username, column = avatar
– Raphael Shembek
SHOW FULL COLUMNS FROM fieldName (if it is Mysql). I believe that you cannot have a SELECT exclusive to a field.
– user4701
Caraka bro really that was what I was looking for flw hug..
– Raphael Shembek