SQL Listing all column names alphabetically

后端 未结 8 1893
天命终不由人
天命终不由人 2020-12-16 11:39

I know that

SELECT * FROM Table

will list all columns in the table, but I am interested in listing the columns in alphabetical order.

8条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-16 12:01

    You may just specify columns you wish to select:

    SELECT age, name, sex FROM Table
    

    Columns will be shown in the same order as you specified them in query.

提交回复
热议问题