SELECT * fetches all columns, wasting bandwidth and preventing covering index optimization.
Why This Matters
Using SELECT * transfers unnecessary data, prevents the query optimizer from using covering indexes, and breaks if columns are added later.
Tags
MySQLQuery Optimization
Related Rules
Catch this automatically on every PR
BeforeMerge scans your pull requests against this rule and 2+ others. Get actionable feedback before code ships.