Select Columns of a View

后端 未结 5 1835
我寻月下人不归
我寻月下人不归 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:38

    information_schema.columns.Table_name (at least under Sql Server 2000) includes views, so just use

    SELECT * FROM information_schema.columns WHERE table_name = 'VIEW_NAME'
    

提交回复
热议问题