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.
+1
A:
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.
HeavyWave
2009-10-27 06:06:14
A:
Include 15 columns than excluding 5. It is a standard practice too.
(Also try to avoid *, it is not standard eventhough it works)
NinethSense
2009-10-27 06:25:41