Reputation: 317
I want to select 15 columns from a table of 20 columns. Is there a way to exclude those 5 columns instead of specifying other 15 columns.
Upvotes: 4
Views: 12336
Reputation: 9028
Include 15 columns than excluding 5. It is a standard practice too.
(Also try to avoid *, it is not standard eventhough it works)
Upvotes: 0
Reputation: 17981
I don't think it's possible, and it is not such a good idea. What if your columns change later? Than your results will not correspond to your objects. If your question comes from plain laziness than you probably should reconsider.
Upvotes: 1