Is it possible to display fields and ignore unnecessary ones?

Hi, is it possible to display fields from a table and ignore any of them? For example,

$res = mysql_query("SELECT * FROM ");

Displaying all fields, now I want it to display all fields, except for those values ​​where id = 1 or id = 2, etc.

Answer 1, authority 100%

SELECT * FROM  WHERE id<>1 or id<>2

Answer 2, authority 50%

IMHO, it’s more beautiful, more convenient and understandable

SELECT * FROM `table` WHERE id NOT IN(1,2)