SQL join, getting multiple columns with same name

后端 未结 3 1887
夕颜
夕颜 2021-02-13 21:03

I have one table with a column ID and SERVICE_TYPE_TEXT, and another table with columns

ID, SERVICE_TYPE ... 

and lot

3条回答
  •  心在旅途
    2021-02-13 21:15

    Set your query so that it returns all data from the second table but only the required field (column) from the first.
    Something like this:

    SELECT TAB1.SERVICE_TYPE_TEXT, TAB2.*
    FROM TAB1
    INNER JOIN
    TAB2
    ON TAB1.ID = TAB2.SERVICE_TYPE
    

自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题