
Originally Posted by
UtOkbOlinAO
Hi guys,
Lets assume nga naa moy isa ka table then with 20 colums..
how do u construct a query that would select all 19 colums pero dili i.explicit ug apil sa query ang column name...
in short "select * except a column" how to do this?
Thanks guys in advance...
LAZY CODES ARE BAD CODES!!!!!! :P
No, it's not advisable. It will cause future problems with your table.
Firstly, as a programmer or developer, you have to know all columns write them down and include them in your query and exclude the column you don't like to be part of your query.
Code:
SELECT c1,c2, c4,c5,c6,c7
FROM stupidtable
WHERE blah blah AND BLAH BLAH and blah blah
GROUP BY blah blah
ORDER BY blah blah
LIMIT blah blah
If you create a special function or method that exclude your keyword from the query. It's possible.