select * vs select column

前端 未结 12 837
后悔当初
后悔当初 2020-11-22 05:42

If I just need 2/3 columns and I query SELECT * instead of providing those columns in select query, is there any performance degradation regarding more/less I/O

12条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-22 05:53

    select * from table1 INTERSECT  select * from table2
    

    equal

    select distinct t1 from table1 where Exists (select t2 from table2 where table1.t1 = t2 )
    

提交回复
热议问题