Answer the question
In order to leave comments, you need to log in
How to exclude certain columns from a query in SQL?
Plain SELECT with a lot of necessary columns and a couple of unnecessary ones.
How best to choose them so as not to list everything separated by commas?
Something like: SELECT *, !id, !name
Is there any syntax for this?
Answer the question
In order to leave comments, you need to log in
You can't do that. Also, it is not recommended to use SELECT * FROM ...
. Therefore, by listing the columns, you will kill two birds with one stone.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question