Home > Database > Mysql Tutorial > sql 语句 取数据库服务器上所有数据库的名字

sql 语句 取数据库服务器上所有数据库的名字

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 17:57:51
Original
1084 people have browsed it

sql 语句 取数据库服务器上所有数据库的名字,一般作者自己是没问题了。

--取得所有数据库名 包括系统数据库
--SELECT name FROM master.dbo.sysdatabases
--取得所有非系统数据库名
--select [name] from master.dbo.sysdatabases where DBId>6 Order By [Name]
--取所有信息,包括数据库文件地址
--select * from master.dbo.sysdatabases where DBId>6 Order By [Name]
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
sql file
From 1970-01-01 08:00:00
0
0
0
php - Overhead of prepare vs sql?
From 1970-01-01 08:00:00
0
0
0
Print sql statement
From 1970-01-01 08:00:00
0
0
0
Pass array to SQL insert query using PHP
From 1970-01-01 08:00:00
0
0
0
sql optimization or
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