SQL exclude a column using SELECT * [except columnA] FROM tableA?

后端 未结 30 3055
花落未央
花落未央 2020-11-21 23:15

We all know that to select all columns from a table, we can use

SELECT * FROM tableA

Is there a way to exclude column(s) from a table witho

30条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-21 23:46

    Right click table in Object Explorer, Select top 1000 rows

    It'll list all columns and not *. Then remove the unwanted column(s). Should be much faster than typing it yourself.

    Then when you feel this is a bit too much work, get Red Gate's SQL Prompt, and type ssf from tbl, go to the * and click tab again.

提交回复
热议问题