vincentvoid
查询所有的数据库
1
select [name] from [sysdatabases] order by [name]
 
查询一个数据库中的所有表『 [type] = \'u\' 是用户表,[type] = \'s\'是系统表』
1
select [id], [name] from [sysobjects] where [type] = \'u\'
 
根据上个语句的查询结果然后再查询一个表中的所有字段
 
1
select [name] from [syscolumns] where [id] = 1931153925

 

分类:

技术点:

相关文章: