Re: Select * vs Select Columns
Run EXPLAIN SELECT ...; each way -- see if there is any difference.
Run EXPLAIN EXTENDED SELECT ...; immediately followed by SHOW WARNINGS; -- see if the converted SQL is any different.
SELECT * is turned into SELECT a,b,... -- so it cannot be any "better" than spelling out the fields yourself.
Since it is a JOIN, the fields will be come from all the tables.
If you run the identical SELECT twice in a row, the second one is likely to run faster simply because of caching. Did you eliminate this effect?
Subject
Views
Written By
Posted
5747
July 10, 2014 12:15PM
Re: Select * vs Select Columns
3005
July 13, 2014 04:50PM
2216
July 14, 2014 10:19AM
2388
July 14, 2014 10:23AM
2414
July 14, 2014 11:16AM
2309
July 14, 2014 11:20AM
2392
July 14, 2014 01:37PM
2303
July 15, 2014 09:27PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.