|
|
|
|
|
by lf-non
803 days ago
|
|
I have come to believe that select * should only be used in exploratory SQL and never in application code. I know a lot of devs treat database schemas as sacrosanct and try not to modify the schema much once created. However, I do like being able to iterate on schema quite a bit during early stages of application and in case of dot-star queries I often end up with either run time errors or type errors that are quite far from the query itself. So now I have settled on ensuring that all columns are always specified in queries originating from application code. |
|