SQL Server里查询表结构命令

现提供两条命令查询表结构:
1.sp_help table_name;
          如:
[sql]
sp_help Student;  
 
2.sp_columns table_name;
           如:
[sql]
sp_columns Student;  
 
 推荐使用sp_help table_name,因为这条命令查询出的表结构信息更加详细。
posted @ 2015-12-04 09:50  雨花梦  阅读(765)  评论(0)    收藏  举报