1052: Column 'id' in field list is ambiguous

前端 未结 8 1966
面向向阳花
面向向阳花 2020-11-22 13:17

I have 2 tables. tbl_names and tbl_section which has both the id field in them. How do I go about selecting the id field,

8条回答
  •  一个人的身影
    2020-11-22 13:41

    SELECT tbl_names.id, tbl_names.name, tbl_names.section
      FROM tbl_names, tbl_section 
     WHERE tbl_names.id = tbl_section.id
    

提交回复
热议问题