INNER JOIN same table

后端 未结 6 781
盖世英雄少女心
盖世英雄少女心 2021-01-01 11:32

I am trying to get some rows from the same table. It\'s a user table: user has user_id and user_parent_id.

I need to get the user_id

6条回答
  •  感情败类
    2021-01-01 12:30

    Perhaps this should be the select (if I understand the question correctly)

    select user.user_fname, user.user_lname, parent.user_fname, parent.user_lname
    ... As before
    

提交回复
热议问题