How can I get column names from a table in SQL Server?

前端 未结 20 1688
既然无缘
既然无缘 2020-11-22 09:29

I want to query the name of all columns of a table. I found how to do this in:

  • Oracle
  • MySQL
  • PostgreSQL

But I also need to know:

20条回答
  •  傲寒
    傲寒 (楼主)
    2020-11-22 10:21

    You can use sp_help in SQL Server 2008.

    sp_help ;
    

    Keyboard shortcut for the above command: select table name (i.e highlight it) and press ALT+F1.

提交回复
热议问题