Possible Duplicate:
SQL exclude a column using SELECT * [except columnA] FROM tableA?
Hi all
I am using Mysql.
and I am looking for, Is it posssible to use a query to select all coumns except few columns?
Possible Duplicate:
SQL exclude a column using SELECT * [except columnA] FROM tableA?
Hi all
I am using Mysql.
and I am looking for, Is it posssible to use a query to select all coumns except few columns?
No it is not possible, the expression "select all except" has not yet been implemented in any existing database.
Yes, by listing the columns specifically, e.g.
select col1, col3, col5, othercol
from tbl
(table contains other columns not listed)
But if your question is about something like (pseudo)
select * - (col2,col4)
from tbl
meaning, * = all, less col2 & col4, then it hasn't been implemented in any DB system to date.