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

后端 未结 30 2529
花落未央
花落未央 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:43

    In summary you cannot do it, but I disagree with all of the comment above, there "are" scenarios where you can legitimately use a * When you create a nested query in order to select a specific range out of a whole list (such as paging) why in the world would want to specify each column on the outer select statement when you have done it in the inner?

提交回复
热议问题