Possible Duplicate:
Which is faster/best? SELECT * or SELECT column1, colum2, column3, etc
I recall reading a number of years ago that in the scenario where you wanted to select everything from a MySQL table it was more efficient and better practice to specify every column rather than use the lazy and less-efficient SELECT *
approach.
I am struggling to find any evidence of this online, so i'm not sure if it applies with newer versions of MySQL and PHP.
Would it be better to specify every column in my SELECT
rather than using SELECT *
?
SELECT * FROM golf_course WHERE id = 2;