Home > Database > Mysql Tutorial > SQLServer中master数据库分析

SQLServer中master数据库分析

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 17:57:25
Original
1624 people have browsed it

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"
就能得到该表的列信息
Related labels:
Statement of this Website
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
Latest Issues
Problem with tp6 connecting to sqlserver database
From 1970-01-01 08:00:00
0
0
0
Unable to connect to SQL Server in Laravel
From 1970-01-01 08:00:00
0
0
0
Methods of parsing MYD, MYI, and FRM files
From 1970-01-01 08:00:00
0
0
0
SQLSTATE: User login failed
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template