7

How to select multiple columns from a table excluding some columns?

I tried:

SELECT *!=[column name i want to exclude] from tablename;

it didn't work.

jarlh
  • 42,561
  • 8
  • 45
  • 63
sriram unnam
  • 81
  • 1
  • 1
  • 4
  • 2
    Possible duplicate of [Select all columns except one in MySQL?](http://stackoverflow.com/questions/9122/select-all-columns-except-one-in-mysql) – Dasrath Dec 02 '15 at 10:21

1 Answers1

7
select column1, column2, column4, column7
from tablename;

should be the way to go.

Non Plus Ultra
  • 867
  • 7
  • 17