I've been reading up on this and I understand that it's better to explicitly list the column names, I still have a question.
Let's pretend the following scenario (which is very close to my real life scenario):
New columns will never be added
I am not using any blob data
I actually do want to return all of the columns
I have a table with roughly 140 million rows
I don't actually need all 140 million rows, but let's just pretend I do for the sake of argument
I am not using any joins and nobody else will
The queries below are literally exactly how I will be running the queries.
Is there a performance difference between the following queries:
SELECT * FROM <table_name>
VS
SELECT <every_column_name...> FROM <table_name>
Edit: I understand there are a million questions on this topic. BUT FOR THIS PARTICULAR SCENARIO is there any sort of performance difference? Is select *
still bad or will both queries have the same performance?
From what I can tell, based on the results of using explain
, there is no difference, for this particular case.