I have 100 columns in a table and I want to list 99 columns except a particular one.
How to exclude that columns name?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is no easier way to do this (possibly by design): you need to specifically list each of the columns you want to retrieve.
Although it’s a hassle to write, this is actually a Good Thing: using
SELECT *in production code is discouraged (both for performance and maintainability reasons) – see e.g. this question.