sql下master数据库分析,了解下master数据库主要是做什么用的
表sysdatabases:保存DBMS中数据库信息
select [name] from [sysdatabases] order by [name]
就能得到该DBMS中的数据库信息
表sysobjects:保存数据库中数据表信息
con.ChangeDatabase(DBName)
select [id],[name] from [sysobjects] where [type]='u',con
就能得到该数据库的表信息
表syscolumns:保存数据表的列信息
select [name] from [syscolumns] where [id]="从sysobjects中获取该表的id"
就能得到该表的列信息
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn