Select Columns of a View

后端 未结 5 1696
我寻月下人不归
我寻月下人不归 2021-02-11 17:11

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

5条回答
  •  鱼传尺愫
    2021-02-11 17:18

    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('')
    

提交回复
热议问题