Select Columns of a View

后端 未结 4 1070
我寻月下人不归
我寻月下人不归 2021-02-11 17:18

I\'m attempting to select the column names of a view in a similar way as selecting from information_schema.columns.

I can\'t seem to find a wa

4条回答
  •  日久生厌
    2021-02-11 17:20

    I found this way working for views (SQL 2017). I was not able to get data from information_schema.columns and sys.columns:

        SELECT * FROM sys.all_columns WHERE object_id = OBJECT_ID('')
    

提交回复
热议问题