SQL查询数据库结构信息

一、查询数据库中的所有的表信息

  select * from sysobjects where type='u'

 

二、查询数据库中的某个表结构

  select * from information_schema.columns where table_name= '表名'

posted @ 2012-01-17 11:43  蓝天翱翔  阅读(349)  评论(0)    收藏  举报