ibnpaul
02-27-2007, 06:18 AM
Hi all,
I want to be able to select all fields from a table except certain fields.
I came across the NOT operator in the MySQL ref. manual, and I wanted to check about the syntax of that operator.
Would this syntax work:
SELECT NOT id1, id2, id3, id4 FROM table
Or would this work:
SELECT NOT id1, NOT id2, NOT id3, NOT id4 FROM table
If neither, what is the shortest way that would work? Thanks!
I want to be able to select all fields from a table except certain fields.
I came across the NOT operator in the MySQL ref. manual, and I wanted to check about the syntax of that operator.
Would this syntax work:
SELECT NOT id1, id2, id3, id4 FROM table
Or would this work:
SELECT NOT id1, NOT id2, NOT id3, NOT id4 FROM table
If neither, what is the shortest way that would work? Thanks!