2012-03-25 44 views
0

可能重复:
Printing Table's structure/schema
oracle has 'DESCRIBE' to get all the details of the table like wise does t/sql has any thing清单表及其结构

我想我的表的列表以及它们的结构。假设我有20个以上。 我该怎么办? 这个查询得到我名单表:

SELECT * FROM INFORMATION_SCHEMA.Tables 

但 我想这

Name Structure 


    Product  ID int Primary key,Name nvarchar(50),........... 
    Group   ID int Primary key, Name nvarchar(50),.......... 
    Employee  ID int Primary Key,Name nvarchar(50), Address (300), ........ 

回答

3

您可以使用

sp_columns tablename