SQL查询数据库结构信息
一、查询数据库中的所有的表信息
select * from sysobjects where type='u'
二、查询数据库中的某个表结构
select * from information_schema.columns where table_name= '表名'
一、查询数据库中的所有的表信息
select * from sysobjects where type='u'
二、查询数据库中的某个表结构
select * from information_schema.columns where table_name= '表名'