Oracle rename columns from select automatically?

后端 未结 4 758
无人共我
无人共我 2021-01-19 14:55

I have 2 tables with the following fields.

Table1

  • AA
  • BB
  • CC
  • DD

Table2

  • AA
  • CC
4条回答
  •  遇见更好的自我
    2021-01-19 15:30

    Try this

     select t1.AA "t1_AA", t2.AA "t2.AA"
     from table1 t1,
     inner join table2 t2
     on table1.DD = table2.EE
    

    As he said before, you need to do it per column

提交回复
热议问题