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

后端 未结 30 2595
花落未央
花落未央 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-22 00:00

    If you are using SQL Server Management Studio then do as follows:

    1. Type in your desired tables name and select it
    2. Press Alt+F1
    3. o/p shows the columns in table.
    4. Select the desired columns
    5. Copy & paste those in your select query
    6. Fire the query.

    Enjoy.

提交回复
热议问题