Possible Duplicate:
SQL exclude a column using SELECT * [except columnA] FROM tableA?
I have a table and this table contain 30 columns and I get only those columns name who they are required me with *.
My question is how do I avoid rest of columns name?
For example, result required if possible in MySQL:
SELECT *, AVOID('col_13,col_14') FROM `table`
AVOID is not a function of MySQL I just explain through this.
Why I want this? I required only 20 columns name for a home page and I don't write a query like this because I want optimize or shorter way like *
.
SELECT col_1,col_2,....col_20 FROM `table`
This is possible in MySQL.