-2

This is my query :

select * 
from tab a 
inner join tab2 b on a.id = b.id  

I have 20 columns, but I want to exclude one.

Do you have any performant way to do it please?

I know that I can use it when I have all data in one table but I want to it in this query.

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
hest
  • 1
  • 3
  • 2
    The **only** way to do this (and the **recommended** way, too), is to **explicitly list** all those columns that you *want to select* and want to include in your result set – marc_s Aug 24 '22 at 13:07

1 Answers1

0

Do you have the name of the columns? You could do

SELECT COLUMN1,COLUMN2,COLUMN3 FROM tab a inner join tab2 b on a=id=b.id
Damien
  • 103
  • 1
  • 10