开发者

how to see the Table structure in the Query Analyzer MS SQL Server

开发者 https://www.devze.com 2023-03-08 09:25 出处:网络
I am trying to check the table structure of given table in Query Analyzer. I am trying to see the anything equivalent Of Describe in Mysql in SQL serv开发者_如何学Goer

I am trying to check the table structure of given table in Query Analyzer.

I am trying to see the anything equivalent Of Describe in Mysql in SQL serv开发者_如何学Goer

I found sp_help, but that gives me more than what I expect.


Try

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

sp_columns also works but that's 2005 and up and you reference "Query Analyzer" which is for 2000

0

精彩评论

暂无评论...
验证码 换一张
取 消