Column 'user_id' in field list is ambiguous

前端 未结 5 1593
醉梦人生
醉梦人生 2020-12-15 22:05

I am attempting to get the user information of the user who left this review.

With the following code:

SELECT username, image, user_id FROM table_use         


        
5条回答
  •  醉酒成梦
    2020-12-15 22:36

    It means that both tables in the query have the column user_id.

    You need to specify which one you want to get in the SELECT statement like SELECT username, image, re.user_id

提交回复
热议问题