当数据库表特别的多,展开数据库不是很方便查找的情况下可以通过条件来筛选表名
一.切换到用户数据库使用
user 数据库名
二.查询数据库所有表
select name from sysobjects where xtype='u'
三.可带条件进行筛选,条件可以用=、<>、like.....等一些数据库where条件
select name from sysobjects where xtype='u' and name like '%表名称缩写%'
四.取表的结构
select column_name,data_type,character_maximum_length from information_schema.columns where table_name = '表名'