Select Columns of a View

后端 未结 4 1068
我寻月下人不归
我寻月下人不归 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:25

    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'
    

提交回复
热议问题